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 Comments

How is the image being brought into MATLAB?
By using imshow only.
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() ?

Answers (0)

This question is closed.

Asked:

on 19 Jun 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!