Why getting black image as output?

23 vues (au cours des 30 derniers jours)
Merve YILDIRIM
Merve YILDIRIM le 18 Mai 2020
Commenté : Merve YILDIRIM le 18 Mai 2020
I have 3 bands images.(tif). I try to open it but it look black. why? how can I open it colored?
I=imread('10030050.tif');
imshow(I)
  3 commentaires
Merve YILDIRIM
Merve YILDIRIM le 18 Mai 2020
>> size(I)
ans =
13824 7680 3
>> class(I)
ans =
'uint16'
>> max(I(:))
ans =
uint16
4095
Merve YILDIRIM
Merve YILDIRIM le 18 Mai 2020
image is truecolor.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 18 Mai 2020
You are only using 1/16th of the possible data range.
Is = double(I)/4095;
imshow(Is)
  5 commentaires
Walter Roberson
Walter Roberson le 18 Mai 2020
Your image is not all that big, but if you were to be trying to compare every column to every other column, you could run out of memory.
Merve YILDIRIM
Merve YILDIRIM le 18 Mai 2020
Ok, I see. Thank you so so much :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by