image display in Matlab

The image should be like the 1st image but its coming like the 2nd image. What can be done in this?

3 commentaires

Walter Roberson
Walter Roberson le 19 Juin 2019
How is the image being brought into MATLAB?
ACHALA SHAKYA
ACHALA SHAKYA le 19 Juin 2019
By using imshow only.
Walter Roberson
Walter Roberson le 19 Juin 2019
imshow() with no parameters gives an error. This is different than calling image() with no paramters, which puts up a default image.
If you are using imshow, you must be getting the information to display from somewhere. EIther you are are passing a matrix of data to imshow() or else you are passing a filename or URL to imshow and having it read the file on your behalf. Where is the data to be displayed coming from? How are you getting that data into MATLAB in order to pass it to imshow() ?

Réponses (0)

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