Why getting black image as output?

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 comentarios

Walter Roberson
Walter Roberson el 18 de Mayo de 2020
What shows up for size(I) and class(I) and max(I(:)) ?
Merve YILDIRIM
Merve YILDIRIM el 18 de Mayo de 2020
>> size(I)
ans =
13824 7680 3
>> class(I)
ans =
'uint16'
>> max(I(:))
ans =
uint16
4095
Merve YILDIRIM
Merve YILDIRIM el 18 de Mayo de 2020
image is truecolor.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Mayo de 2020
You are only using 1/16th of the possible data range.
Is = double(I)/4095;
imshow(Is)

5 comentarios

Merve YILDIRIM
Merve YILDIRIM el 18 de Mayo de 2020
ohh, thank you so much :))
so, does the quality of my image go bad?
does the quality of my image go bad?
I am not sure what you mean, but probably not.
When you are using uint16 data, it is common that the "interesting" part of it is only a small range. But you have to figure out what that interesting area is for your purposes. imhist() can sometimes help with that
For example,
imshow(I, [2000 2400])
Merve YILDIRIM
Merve YILDIRIM el 18 de Mayo de 2020
Ok. I guess so, my data’ s size big so matlab is stoped. Error: memory Do you think so?
Walter Roberson
Walter Roberson el 18 de Mayo de 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 el 18 de Mayo de 2020
Ok, I see. Thank you so so much :)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 18 de Mayo de 2020

Comentada:

el 18 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by