image = imread('watermarkimage2.jpg');

mask = imread('ig2.png');
opacity = 0.65;
FG = 0.81; 

R = im2double(image);
mask = im2double(mask);
alpha = mask*opacity;
BG = (R-FG.*alpha)./(1-alpha);

BG = BG.*mask + im2double(image).*(1-mask);

imshow(BG,'border','tight')`

it says Inconsistent row/column dimensions in this part: BG = (R-FG.*alpha)./(1-alpha);

I tried removing "." but it still has your text errors. anyone have ideas on what's wrong?your text

0

There are 0 best solutions below