필터 지우기
필터 지우기

how to set colorbar not showing values

조회 수: 2 (최근 30일)
nirit
nirit 2016년 10월 18일
답변: Walter Roberson 2016년 10월 18일
I have grayscale image with values 0, 11-max(image). I want to show 0 as black , and 11-max(image) as different type of red.
my questions are:
1.how to change the colorbar accordingly? I dont mind showing 0-11 as black, but it will be best if the values 1-10 will not shown at all at the colorbar. or , in other words, can I show at the colorbar only the values :0,11-end?
2. how to make the quantization of the red seem good? (so that the human eye could make the different between the shades )
please help?
thank you.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 10월 18일
You cannot use colorbar and have a range omitted. You could create your own colorbar replacement.
For the quantization you probably cannot do better than linspace() of the red values between some minimum and maximum in the 0 to 1 range,with number of steps equal to the greatest max value minus 9

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by