how to convert this image to the original one?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149482/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149486/image.bmp)
<</matlabcentral/answers/uploaded_files/29793/lena_2.bmp>>
I am using
imshow(filename)
I also used map and ind2rgb, but these two are also not helping me to get back the original image(image 2).
Need your help...help me.
0 Commenti
Risposte (1)
Image Analyst
il 26 Apr 2015
You can't get back to the original, unless you'ved save the original. If you pseudocolor the image with rgb2ind() you basically force all pixels to be chosen from a limited number of colors, and you get a "grayscale" image where the "gray scale" or value of the image is not really a gray scale intensity or a color but really an index into a pseudocolor look up table (a "colormap"). After that, then you cannot get back the original image even with ind2rgb(). ind2rgb() will give you a color image but just with the limited number of colors.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!