Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EuclideanBT709

Euclidean color distance (RGBQuant modification w Alpha)

Hierarchy

Index

Constructors

constructor

Properties

Protected _kA

_kA: number

Protected _kB

_kB: number

Protected _kG

_kG: number

Protected _kR

_kR: number

Protected _maxDistance

_maxDistance: number

Protected _whitePoint

_whitePoint: { a: number; b: number; g: number; r: number }

Type declaration

  • a: number
  • b: number
  • g: number
  • r: number

Methods

Protected _setDefaults

  • _setDefaults(): void

calculateNormalized

  • calculateNormalized(colorA: PointRGBA, colorB: PointRGBA): number

calculateRaw

  • calculateRaw(r1: number, g1: number, b1: number, a1: number, r2: number, g2: number, b2: number, a2: number): number

setWhitePoint

  • setWhitePoint(r: number, g: number, b: number, a: number): void

Generated using TypeDoc