How to unblend two images from a blend image

Posted by gavishna on Stack Overflow See other posts from Stack Overflow or by gavishna
Published on 2010-06-13T20:13:49Z Indexed on 2010/06/13 20:22 UTC
Read the original article Hit count: 204

Filed under:
|
|

I have blended/merged 2 images img1 and img2 with this code which is woking fine.What i want to know is how to obtain the original two images img1 and img2.The code for blending is as under

img1=imread('C:\MATLAB7\Picture5.jpg');
img2=imread('C:\MATLAB7\Picture6.jpg');
for i=1:size(img1,1)
  for j=1:size(img1,2)
    for k=1:size(img1,3)
      output(i,j,k)=(img1(i,j,k)+img2(i,j,k))/2;
    end
   end
end
imshow(output,[0 255]);

© Stack Overflow or respective owner

Related posts about image

Related posts about matlab