IM: Additional Image Quantization Operations

IM - An Imaging Tool

Additional Image Quantization Operations
[Image Processing]


Detailed Description

Additionally operations to the imConvertColorSpace function.
See im_process_pon.h


Functions

void imProcessQuantizeRGBUniform (const imImage *src_image, imImage *dst_image, int do_dither)
void imProcessQuantizeGrayUniform (const imImage *src_image, imImage *dst_image, int grays)

Function Documentation

void imProcessQuantizeRGBUniform const imImage src_image,
imImage dst_image,
int  do_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.

im.ProcessQuantizeRGBUniform(src_image: imImage, dst_image: imImage, do_dither: boolean) [in Lua 5] 
im.ProcessQuantizeRGBUniformNew(src_image: imImage, do_dither: boolean) -> new_image: imImage [in Lua 5] 

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.

im.ProcessQuantizeGrayUniform(src_image: imImage, dst_image: imImage, grays: number) [in Lua 5] 
im.ProcessQuantizeGrayUniformNew(src_image: imImage, grays: number) -> new_image: imImage [in Lua 5]