ImgMergeRGBChannels |
Top Previous Next |
Prototype
IntImage:=ImgMergeRGBChannels(intRedImageHandle,IntGreenImageHandle,intBlueImageHandle)
Description
Produces a new RGB images using 3 grayscale images representing red, green and blue channels..
Parameters
intRedImageHandle: integer value corresponding to the red image handle.
intGreenImageHandle: integer value corresponding to the green image handle.
intBlueImageHandle: integer value corresponding to the blue image handle.
Returned value
IntImage: integer value corresponding to the new color image handle.
Notes
Source images have to be grayscale and with same size.
Example
// Get R, G and B layers from color image RedLayer:=ImgGetRedChannel(_CurrentImage); GreenLayer:=ImgGetGreenChannel(_CurrentImage); BlueLayer:=ImgGetBlueChannel(_CurrentImage);
// Increase contrast just on green layer ImgAdjustContrast(GreenLayer,30);
// Rebuild color image from layers NewImage:=ImgMergeRGBChannels(RedLayer,GreenLayer,BlueLayer);
// Delete R, G and B layers from memory ImgDelete(RedLayer); ImgDelete(GreenLayer); ImgDelete(BlueLayer);
// Substute to original image the new processed image _CurrentImage:=NewImage; |