Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
How do I convert g into a double then store it in a new variable then rescale the image with new values that range from 0 to 1 and then plot it?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponses (1)
Image Analyst
le 9 Nov 2018
Try this:
g2 = mat2gray(g);
I don't know what it means to "plot" an image, but if you want to "display" it, use imshow():
imshow(g2, []);
0 commentaires
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!