Why getting black image as output?

조회 수: 23 (최근 30일)
Merve YILDIRIM
Merve YILDIRIM 2020년 5월 18일
댓글: Merve YILDIRIM 2020년 5월 18일
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
Merve YILDIRIM
Merve YILDIRIM 2020년 5월 18일
>> size(I)
ans =
13824 7680 3
>> class(I)
ans =
'uint16'
>> max(I(:))
ans =
uint16
4095
Merve YILDIRIM
Merve YILDIRIM 2020년 5월 18일
image is truecolor.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2020년 5월 18일
You are only using 1/16th of the possible data range.
Is = double(I)/4095;
imshow(Is)
  댓글 수: 5
Walter Roberson
Walter Roberson 2020년 5월 18일
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 2020년 5월 18일
Ok, I see. Thank you so so much :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by