Search
Preparing search index...
The search index is not available
image-q
Options
All
Public
Public/Protected
All
Inherited
Menu
image-q
distance
AbstractEuclidean
Class AbstractEuclidean
Euclidean color distance
Hierarchy
AbstractDistanceCalculator
AbstractEuclidean
Euclidean
EuclideanBT709NoAlpha
EuclideanBT709
Index
Constructors
constructor
Properties
_kA
_kB
_kG
_kR
_max
Distance
_white
Point
Methods
_set
Defaults
calculate
Normalized
calculate
Raw
set
White
Point
Constructors
constructor
new
Abstract
Euclidean
(
)
:
AbstractEuclidean
Returns
AbstractEuclidean
Properties
Protected
_kA
_kA
:
number
Protected
_kB
_kB
:
number
Protected
_kG
_kG
:
number
Protected
_kR
_kR
:
number
Protected
_max
Distance
_max
Distance
:
number
Protected
_white
Point
_white
Point
:
{
a
:
number
;
b
:
number
;
g
:
number
;
r
:
number
}
Type declaration
a
:
number
b
:
number
g
:
number
r
:
number
Methods
Protected
Abstract
_set
Defaults
_set
Defaults
(
)
:
void
Returns
void
calculate
Normalized
calculate
Normalized
(
colorA
:
PointRGBA
, colorB
:
PointRGBA
)
:
number
Parameters
colorA:
PointRGBA
colorB:
PointRGBA
Returns
number
calculate
Raw
calculate
Raw
(
r1
:
number
, g1
:
number
, b1
:
number
, a1
:
number
, r2
:
number
, g2
:
number
, b2
:
number
, a2
:
number
)
:
number
Calculate raw distance (non-normalized)
Parameters
r1:
number
g1:
number
b1:
number
a1:
number
r2:
number
g2:
number
b2:
number
a2:
number
Returns
number
set
White
Point
set
White
Point
(
r
:
number
, g
:
number
, b
:
number
, a
:
number
)
:
void
Parameters
r:
number
g:
number
b:
number
a:
number
Returns
void
Exports
constants
conversion
distance
image
palette
quality
utils
Abstract
Euclidean
constructor
_kA
_kB
_kG
_kR
_max
Distance
_white
Point
_set
Defaults
calculate
Normalized
calculate
Raw
set
White
Point
Generated using
TypeDoc
Euclidean color distance