Skip to main content

Module algorithms

Module algorithms 

Source
Expand description

Error diffusion and ordered dithering on raw RGB pixel buffers.

Structs§

Kernel
KernelOffset
Pixel offset + pre-divided weight for one kernel entry.

Statics§

ATKINSON
BURKES
FLOYD_STEINBERG
JARVIS_JUDICE_NINKE
SIERRA
SIERRA_LITE
STUCKI

Functions§

atkinson
burkes
direct_map
error_diffusion_dither
Error diffusion dither. Returns palette indices (len = width × height).
error_diffusion_dither_with_canonical
Error diffusion with exact canonical display-color pixels pinned.
floyd_steinberg
jarvis_judice_ninke
ordered_dither
Ordered (Bayer 4×4) dither. Pixels are independent — parallelized with rayon.
ordered_dither_with_canonical
sierra
sierra_lite
stucki
try_exact_palette_map