Search
Preparing search index...
The search index is not available
image-q
Options
All
Public
Public/Protected
All
Inherited
Menu
image-q
image
ErrorDiffusionRiemersma
Class ErrorDiffusionRiemersma
Hierarchy
AbstractImageQuantizer
ErrorDiffusionRiemersma
Index
Constructors
constructor
Methods
quantize
quantize
Sync
Constructors
constructor
new
Error
Diffusion
Riemersma
(
colorDistanceCalculator
:
AbstractDistanceCalculator
, errorQueueSize
?:
number
, errorPropagation
?:
number
)
:
ErrorDiffusionRiemersma
Parameters
colorDistanceCalculator:
AbstractDistanceCalculator
errorQueueSize:
number
= 16
errorPropagation:
number
= 1
Returns
ErrorDiffusionRiemersma
Methods
quantize
quantize
(
pointContainer
:
PointContainer
, palette
:
Palette
)
:
Generator
<
ImageQuantizerYieldValue
,
void
,
undefined
>
Mutates pointContainer
Parameters
pointContainer:
PointContainer
palette:
Palette
Returns
Generator
<
ImageQuantizerYieldValue
,
void
,
undefined
>
quantize
Sync
quantize
Sync
(
pointContainer
:
PointContainer
, palette
:
Palette
)
:
PointContainer
Parameters
pointContainer:
PointContainer
palette:
Palette
Returns
PointContainer
Exports
constants
conversion
distance
image
palette
quality
utils
Error
Diffusion
Riemersma
constructor
quantize
quantize
Sync
Generated using
TypeDoc
Mutates pointContainer