hue histogram color map
조회 수: 33 (최근 30일)
이전 댓글 표시
Hi
I am trying to plot the hue histogram of my image. It currently looks like this.

I would like it to look like the one below.

Or at least just the bar below should be in color. I tried changing the colormap option but nothing changed. Help thanks !
댓글 수: 0
답변 (2개)
Walter Roberson
2016년 1월 26일
[ind, map] = rgb2ind(YourRGBImage);
imhist(ind, map)
댓글 수: 4
Walter Roberson
2016년 1월 27일
I don't think you can do it with imhist() then. You will probably need to bar() each different bar separately.
Image Analyst
2016년 1월 27일
See attached demo where I change each bar individually. Feel free to adapt.

댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
