Search
Preparing search index...
The search index is not available
Image Quantization Library (image-q)
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
IQ
Distance
DistanceManhattan
Class DistanceManhattan
Manhattan distance
Hierarchy
DistanceManhattan
DistanceManhattanNeuQuant
Implements
IDistanceCalculator
Index
Constructors
constructor
Properties
_
Pa
_
Pb
_
Pg
_
Pr
_max
Manhattan
Distance
Methods
_set
Defaults
calculate
Normalized
calculate
Raw
set
White
Point
Constructors
constructor
new
Distance
Manhattan
(
)
:
DistanceManhattan
Returns
DistanceManhattan
Properties
Protected
_
Pa
_
Pa
:
number
Protected
_
Pb
_
Pb
:
number
Protected
_
Pg
_
Pg
:
number
Protected
_
Pr
_
Pr
:
number
Protected
_max
Manhattan
Distance
_max
Manhattan
Distance
:
number
Methods
Protected
_set
Defaults
_set
Defaults
(
)
:
void
Returns
void
calculate
Normalized
calculate
Normalized
(
colorA
:
Point
, colorB
:
Point
)
:
number
Parameters
colorA:
Point
colorB:
Point
Returns
number
calculate
Raw
calculate
Raw
(
r1
:
number
, g1
:
number
, b1
:
number
, a1
:
number
, r2
:
number
, g2
:
number
, b2
:
number
, a2
:
number
)
:
number
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
Globals
Externals
IQ
IQ.
Color
IQ.
Color.
Constants
IQ.
Color.
Constants.sRGB
IQ.
Distance
IQ.
Image
IQ.
Palette
IQ.
Quality
IQ.
Utils
DistanceCIE94
DistanceCIEDE2000
DistanceCIEDE2000_
Original
DistanceCMETRIC
Distance
Euclidean
Distance
Euclidean
Rgb
QuantWOAlpha
Distance
Euclidean
WuQuant
Distance
Manhattan
constructor
_
Pa
_
Pb
_
Pg
_
Pr
_max
Manhattan
Distance
_set
Defaults
calculate
Normalized
calculate
Raw
set
White
Point
Distance
Manhattan
Neu
Quant
DistancePNGQUANT
IDistance
Calculator
Generated using
TypeDoc
Manhattan distance