Image: Conversion: RGB Merge
Merge RGB channel matrices to form a color image matrix
This feature is for OriginPro only.
1.imgRGBmerge r:=[Red]Msheet1 g:=[Green]Msheet1 b:=[Blue]Msheet1
Please refer to the page for additional option switches when accessing the x-function from script
Specifies the input image used as the red channel.
Specifies the input image used as the green channel.
Specifies the input image used as the blue channel.
Specifies the output image. By default, a new image is created and used as output.
See the syntax here.
The imgRGBmerge function merges the Red, Green and Blue channels to recombine a color image.
In this example, we use the imgRGBmerge function to recombine a color image from its RGB channels (the channel images are named Red, Green and Blue):
In Origin, any pixel of a color image is represented by its red, green and blue components. To recombine an image from its red, green and blue channels, we just need to take each component from the color channels and combine them.