Function addWeighted in OpenCV [closed]

asked 2015-05-23 17:13:08 -0600

diegomoreira gravatar image

Hello everyone,

I need blend two images im my mosaic, but i need use the function addWeighted of the OpenCV. But, this function require that my images had same size. My images have different sizes.

Can I implement this equation N(x, y)= αI(x, y)+(1- α)C(x, y) for don't use this function in my code ? Already that my images has different sizes.

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-26 13:53:27.294772

Comments

what you could do is to apply it in specific ROI's of the two images...

theodore gravatar imagetheodore ( 2015-05-23 17:36:04 -0600 )edit

I need apply this equation for two images with different sizes.

diegomoreira gravatar imagediegomoreira ( 2015-05-23 19:31:03 -0600 )edit

If A is greater than B than there are some point A(x,y) that doesn't exist in B. If you don't like ROI you could scale A to fit B or viceversa.

pklab gravatar imagepklab ( 2015-05-25 04:50:26 -0600 )edit