IM: Additional Image Quantization Operations
From IM - An Imaging Tool
Additional Image Quantization Operations
[Image Processing]
Detailed Description
- Additionally operations to the imConvertColorSpace function.
- See im_process_pon.h
Function Documentation
| void imProcessQuantizeRGBUniform |
( |
const imImage * |
src_image, |
|
|
| imImage * |
dst_image, |
|
|
| int |
dither |
|
| ) |
|
|
|
|
Converts a RGB image to a MAP image using uniform quantization with an optional 8x8 ordered dither. The RGB image must have data type IM_BYTE. |
| void imProcessQuantizeGrayUniform |
( |
const imImage * |
src_image, |
|
|
| imImage * |
dst_image, |
|
|
| int |
grays |
|
| ) |
|
|
|
|
Quantizes a gray scale image in less that 256 grays using uniform quantization.
Both images must be IM_BYTE/IM_GRAY. Can be done in place. |