image = | blendImgImg (inImg1,inImg2,inOptBlendMultiplier) |
blending of 2 images
On output image values are given by:
(with
corresponding to the multiplier parameter of the blending operation
;
is encoded on a ipReal32, and
)
Input and output images must have same size.
Here is an example of a blending operation applied to two 8-bits grey level images with
:
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLArithmetic as arithm
Code Example
inImg1 = PyIPSDK.loadTiffImageFile(inputImg1Path)
inImg2 = PyIPSDK.loadTiffImageFile(inputImg2Path)
outImg = arithm.blendImgImg(inImg1, inImg2, 0.4)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLArithmetic/Processor/BlendImgImg/BlendImgImg.h>
Code Example
ImagePtr pAutoOutImg = blendImgImg(pInImg1, pInImg2, 0.4f);
boost::shared_ptr<MemoryImage> pOutImg(boost::make_shared<MemoryImage>());
pOutImg->init(*pOutputImageGeometry);
blendImgImg(pInImg1, pInImg2, 0.4f, pOutImg);