Info
This question is closed. Reopen it to edit or answer.
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 view (last 30 days)
Show older comments
Answers (1)
Image Analyst
on 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 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!