matlab - How to unblend two images from a blend image -


I have added 2 images with this code to IMAGA1 and IMG2 which is doing okay. I want to know Find out how the original two images get img1 and img2 The code for the mix is ​​

  img1 = imread ('C: \ MATLAB7 \ Picture5.jpg'); Img2 = imread ('C: \ MATLAB7 \ Picture6.jpg'); For I = 1: size for Jammu = 1 (img1,1): size for k = 1 (img1,2): size (img1,3) output (i, j, k) = (img1 (i, J, k)) + img2 (i, j, k)) / 2; End and Emasho (Output, [0 255]); If you had an original image and mixed image, you can recover the second image  

< P>

If you have only mixed image then there are endless numbers of img1 and img2 which can be added to create two images. So you can not recover them.

For future matlab programming, note that you do not need those lips in matlab which you have written, this is similar to the code you provided:

 < Code> img1 = imread ('C: \ MATLAB7 \ Picture5.jpg'); Img2 = imread ('C: \ MATLAB7 \ Picture6.jpg'); Output = (IMG1 + IMG2) ./2; Imshow (output, [0 255]);  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -