Skip to content

nelson-mig-l/boofcv-dithering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boofcv-dithering

Codacy Badge

List of implemented algorithms

Usage

Example usage

GrayU8 input = ...
Dithering dithering = new DitheringFactory().errorDiffusion().floydSteinberg();
DitheringOperation operation = new DitheringOperation(dithering);
GrayU8 output = operation.apply(input);

DitheringOperation only supports GrayU8 and Planar<GrayU8>.

Sources

Heavily based on Image Dithering: Eleven Algorithms and Source Code by tannerhelland

Wikipedia pages about Dither and Ordered dithering were also very helpful.

Other sources include: