image = | appendColorChannelImg (inImg1,inImg2) |
Generates a color image by merging the color channel of the two input images.
This algorithm merges the channels of the two input images InImg1 and InImg2 in a unique image. By defining a pixel coordinate
, a channel index
and the number of channels in the first input image
, the result is given by the formula:
Here is an example of result:
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLColor as color
Code Example
inImg1 = PyIPSDK.loadTiffImageFile(inputImgPath1)
inImg2 = PyIPSDK.loadTiffImageFile(inputImgPath2)
outImg = color.appendColorChannelImg(inImg1, inImg2)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLColor/Processor/AppendColorChannelImg/AppendColorChannelImg.h>
Code Example
ImagePtr pOutImg = appendColorChannelImg(pInImg1, pInImg2);