Ask Your Question

Revision history [back]

Blending two images with masked ROI

I have two images and one mask that marks the overlapping area (ROI). I want to blend the overlapping areas of the two images together. In order to achieve good result, I want to use different alpha at different positions in the ROI for weighed averaging. What is a good way to determine this alpha? A sample code in C++ would be really appreciated!