Multiplication two image

Arithmetic operation on images
Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Multiplication two image

Post by matlab1 »

I want to multiply two images.
But I want this multiplication be invert-able.
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Multiplication two image

Post by matlab1 »

I1 = imread('ngc6543a.jpg');
I2= imread('greens.jpg');
I1 = imresize(I1,[256 256]);
I2 = imresize(I2,[256 256]);
im1 = uint16(I1);
im2 = uint16(I2);
im = im1.*im2;
figure(1);imshow(im)
figure(2);imshow(uint8(im./im1))
figure(3);imshow(uint8(im./im2))
imwrite(im,'aaa.tif','tif');
rrr = imread('aaa.tif');
figure(4);imshow(rrr)
figure(5);imshow(uint8(rrr./im1))
figure(6);imshow(uint8(rrr./im2))
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests