Clear Filters
Clear Filters

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)

Answers (1)

Image Analyst
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, []);

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!