Specifications

Intel
®
Image Processing Library Reference Manual
4-54
4
ConvertToDIB
Converts an
IplImage
to a DIB image with
specified attributes.
void iplConvertToDIB(iplImage*
image
, BITMAPINFOHEADER*
dib
, int
dither
, int
paletteConversion
)
image
The input IplImage.
dib
The output DIB image.
dither
The dithering algorithm to use if applicable.
Dithering will be done if the bit depth in the DIB
is less than that of the
IplImage. The following
algorithms are supported corresponding to these
dither
identifiers:
IPL_DITHER_FS The Floid-Steinberg error diffusion dithering
algorithm is used.
IPL_DITHER_JJH The Jarvice-Judice-Ninke error diffusion
dithering algorithm is used.
IPL_DITHER_STUCKEY The Stucki dithering algorithm is used.
IPL_DITHER_BAYER The Bayer threshold dithering algorithm is
used.
IPL_DITHER_NONE No dithering is done. The most significant
bits in the input image pixel data are
retained.
paletteConversion
Applicable when the DIB is a palette image.
Specifies the palette algorithm to use when
converting an absolute color
IplImage.The
following options are supported:
IPL_PALCONV_NONE The existing palette in the DIB
is used.