Image Conversion
[imImage]
Detailed Description
- Converts one type of image into another. Can convert between color modes and between data types.
- See im_convert.h
Enumerations | |
enum | imComplex2Real { IM_CPX_REAL, IM_CPX_IMAG, IM_CPX_MAG, IM_CPX_PHASE } |
enum | imGammaFactor { IM_GAMMA_LINEAR = 0, IM_GAMMA_LOGLITE = -10, IM_GAMMA_LOGHEAVY = -1000, IM_GAMMA_EXPLITE = 2, IM_GAMMA_EXPHEAVY = 7 } |
enum | imCastMode { IM_CAST_MINMAX, IM_CAST_FIXED, IM_CAST_DIRECT } |
Functions | |
int | imConvertDataType (const imImage *src_image, imImage *dst_image, int cpx2real, float gamma, int abssolute, int cast_mode) |
int | imConvertColorSpace (const imImage *src_image, imImage *dst_image) |
int | imConvertToBitmap (const imImage *src_image, imImage *dst_image, int cpx2real, float gamma, int abssolute, int cast_mode) |
Enumeration Type Documentation
|
Complex to real conversions
|
|
|
Predefined Cast Modes
00053 { 00054 IM_CAST_MINMAX, /**< scan for min and max values */ 00055 IM_CAST_FIXED, /**< use predefied 0-max values, see \ref color Color Manipulation. */ 00056 IM_CAST_DIRECT /**< direct type cast the value. Only byte and ushort will be cropped. */ 00057 };
|
Function Documentation
|
Changes the image data type, using a complex2real conversion, a gamma factor, and an abssolute mode (modulus).
im.ConvertDataType(src_image: imImage, dst_image: imImage, cpx2real: number, gamma: number, abssolute: bool, cast_mode: number) -> error: number [in Lua 5] |
|
Converts one color space to another. Images must be of the same size and data type.
im.ConvertColorSpace(src_image: imImage, dst_image: imImage) -> error: number [in Lua 5] |
|
Converts the image to its bitmap equivalent, uses imConvertColorSpace and imConvertDataType.
im.ConvertToBitmap(src_image: imImage, dst_image: imImage, cpx2real: number, gamma: number, abssolute: bool, cast_mode: number) -> error: number [in Lua 5] |