splitLab
|
|
Input
|
|
An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.
|
|
Light, A, B
|
|
Integer between 1 and 116 specifying the output frame numbers for the Lightness, Red-to-green and Yellow-to blue components respectively. Values in the range of 100-116 correspond to hidden frames.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
This set of statements changes the color tone of an RGB image by splitting it into the LAB components, offsetting all the pixels in the A component by a value of +32 and then merging the components back into an RGB image.
|
|
L=101
|
a=102
|
b=103
|
Off=32
|
setCurDir("samples")
|
loadIm (1,"sample14.iwd")
|
splitLab (1, L, a, b)
|
offsetIm (a, a, Off, M_CLIP)
|
mergeLab (L, a, b, 2)
|
|
|
For more information on the Lab color space see setColorSpace.
|