Safe Haskell | None |
---|
This module provide some color quantisation algorithm
in order to help in the creation of paletted images.
The most important function is palettize
which will
make everything to create a nice color indexed image
with its palette.
- palettize :: PaletteOptions -> Image PixelRGB8 -> (Image Pixel8, Palette)
- defaultPaletteOptions :: PaletteOptions
- data PaletteCreationMethod
- = MedianMeanCut
- | Uniform
- data PaletteOptions = PaletteOptions {}
Documentation
palettize :: PaletteOptions -> Image PixelRGB8 -> (Image Pixel8, Palette)Source
Reduces an image to a color palette according to PaletteOpts
and
returns the indices image along with its Palette
.
defaultPaletteOptions :: PaletteOptionsSource
Default palette option, which aim at the best quality and maximum possible colors (256)
data PaletteCreationMethod Source
Define which palette creation method is used.
MedianMeanCut | MedianMeanCut method, provide the best results (visualy) at the cost of increased calculations. |
Uniform | Very fast algorithm (one pass), doesn't provide good looking results. |
data PaletteOptions Source
To specify how the palette will be created.
PaletteOptions | |
|