imwrite and imshow problem

Hi all,
I have a problem, matlab is showing different images in imshow and imwrite. How to solve this problem?

1 commentaire

Walter Roberson
Walter Roberson le 19 Nov 2018
What is class() and size() of your data? If it is floating point, what is min() and max() of the data? Is your code using colormap() anywhere?

Réponses (1)

Haritha
Haritha le 19 Nov 2018
Modifié(e) : madhan ravi le 19 Nov 2018

0 votes

Hi,
Before using imshow use the below command:
figure;

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by