Specifications

Color Space Conversion
9-3
9
Reducing the Image Bit Resolution
This section describes functions that reduce the bit resolution of absolute
color and gray scale images.
ReduceBits
Reduces the number of
intensity levels in an
image.
void iplReduceBits(IplImage*
srcImage
, IplImage*
dstImage
,
int
noise
, int
ditherType
, int
levels
);
srcImage
Thesourceimage.
dstImage
The resultant image.
noise
The number specifying the noise added.
This parameter is set as a percentage of range
[0..100].
ditherType
The type of dithering to be used.
The following types are supported:
IPL_DITHER_NONE No dithering is done
IPL_DITHER_FS The Floid-Steinberg error
diffusion dithering
algorithm
IPL_DITHER_JJH The Jarvice-Judice-Ninke
error diffusion dithering
algorithm
IPL_DITHER_STUCKEY The Stucki error
diffusion dithering
algorithm