I'm converting my project that used old IPL to IPP. IPL had a possibility to perform blending using external gray-scale image as alpha channel (patchMask):
iplAlphaComposite(patchImage, srcImage, srcImage, IPL_COMPOSITE_PLUS, patchMask, 0, 0, false, false);
This function is useful for image editing (clone brush), as gray-scale patchMask image contains brush tip.
It is very simple to change brush tip and perform the same operation with different brush tip.
In IPP, AlphaComp function accepts only images with alpha channels. Any workaround to blend two images using external gray-scale image?
This is a part of legacy IPP sample code. You can download old IPP 6.0 samples, to get the full code. They are very old, and not part of the current product now.