Blending images using imadd Matlab

Blending Adding images together produces a composite image of both input images. This can be used to produce blending effects using weighted addition.

Example

A = imread('testFirst.jpg');
B = imread('testSecond.jpg');
other1 = imadd(B,A); % added two images

subplot(1,3,1), imshow(imadd(A,100)), title('A'); % added 100 so that image should not look dark
subplot(1,3,2), imshow(imadd(B,100)), title('B'); % added 100 so that image should not look dark
subplot(1,3,3), imshow(other1), title('Final Image'); % displaying final image

Output

Untitled