Multiplication two image

Arithmetic operation on images
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
matlab1
Site Admin
Posts: 3881
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Multiplication two image

Post by matlab1 » Sat Dec 24, 2016 12:09 pm

I want to multiply two images.
But I want this multiplication be invert-able.

matlab1
Site Admin
Posts: 3881
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Multiplication two image

Post by matlab1 » Sat Dec 24, 2016 12:10 pm

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 1 guest