|
mergeIHS
|
|
|
|
| Int, Hue, Sat
|
|
|
| Integers between 0 and 116 specifying the frame numbers of the Intensity, Hue and Saturation component images respectively. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.
|
|
|
| Output
|
|
|
| An integer between 1 and 116 specifying the frame number of the output RGB image. 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 hue of an RGB image by splitting it into the IHS components, offsetting all the pixels in the Hue component by a value of -10 and then merging the components back into an RGB image.
|
|
|
| I=101
|
| H=102
|
| S=103
|
| Off=-10
|
| setCurDir("samples")
|
| loadIm (1,"sample14.iwd")
|
| splitIHS (1, I, H, S)
|
| offsetIm (H, H, Off, M_WRAP)
|
| mergeIHS (I, H, S, 2)
|
| For more information on the IHS color space see setColorSpace.
|