Setting Display Range for RGB Colors

조회 수: 2 (최근 30일)
Dan
Dan 2011년 12월 26일
댓글: Image Analyst 2021년 5월 4일
Hi,
The function imshow(I,[low high]) allows you to set the display range for a grayscale color based on the parameters low and high. Can the same be done for an RGB color without manually editing the array?
Thanks!

채택된 답변

Image Analyst
Image Analyst 2011년 12월 26일
No, it can't. It happens automatically. Even for 16 (48) bit color images, it automatically scales them to 8(24) bit for display on your 8(24 or 32) bit computer monitor. If you didn't want that or like how that looks you'll have to actually change your array before you display it.
  댓글 수: 3
Felipe Bayona
Felipe Bayona 2021년 5월 3일
Hello Image Analyst
How must be the array changed to allow the [low high] intensity definition in RGB?
Thanks
Image Analyst
Image Analyst 2021년 5월 4일
You would have to scale the image before passing it to imshow(). Use rescale() and then cast it to either uint8 or uint16 or have it be a single or double within the range 0 to 1.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by