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
ManhattanNeuQuant
Class ManhattanNeuQuant
Manhattan distance (NeuQuant modification) - w/o sRGB coefficients
Hierarchy
Manhattan
ManhattanNeuQuant
Implements
IDistanceCalculator
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
Manhattan
Neu
Quant
(
)
:
ManhattanNeuQuant
Returns
ManhattanNeuQuant
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
Constants
Conversion
Distance
Image
Palette
Quality
Utils
CIE94
CIEDE2000
CIEDE2000_
Original
CMETRIC
Euclidean
Euclidean
Rgb
QuantWOAlpha
Euclidean
WuQuant
Manhattan
Manhattan
Neu
Quant
constructor
_
Pa
_
Pb
_
Pg
_
Pr
_max
Manhattan
Distance
_set
Defaults
calculate
Normalized
calculate
Raw
set
White
Point
PNGQUANT
IDistance
Calculator
Generated using
TypeDoc
Manhattan distance (NeuQuant modification) - w/o sRGB coefficients