Color image with values from 0 to 1

조회 수: 5 (최근 30일)
turningpoint
turningpoint 2017년 3월 30일
댓글: Jan 2017년 3월 31일
I have a color image that is read as a double when I load it to Matlab. When I try to visualize it using imshow all I see is white, since my image has values higher than 1 (max=35.8501 and min=23.4284). Does anyone knows how I can see the image, maintaining the color?
Thanks!
  댓글 수: 1
KSSV
KSSV 2017년 3월 31일
Attach that typical image...

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

답변 (1개)

Jan
Jan 2017년 3월 31일
How is your color image defined? Color information is stored either by using doubles in the range [0, 1], or as unsigned integers in the range [0, intmax] for 8 or 16 bits.
I cannot guess what a color for the value 35.8501 might be and cannot suggest a method, which "maintains the color". What color is "35.8501"?
Perhaps a normalization helps:
high = max(Img(:));
low = min(Img(:))
RGB = (Img - low) / (high - low);
  댓글 수: 2
turningpoint
turningpoint 2017년 3월 31일
My image(Ic) is in shades of red. It is read as a double, but the values are not between 0 and 1.
whos Ic
Name Size Bytes Class Attributes
Ic 240x320 614400 double
Jan
Jan 2017년 3월 31일
How did you save the image? How do you know that it is red?

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

카테고리

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