Multiple image histogram on the same figure
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi I would like to know how I can plot multiple histogram on the same figure with different color next to each other using imhist command. I know how to do it using hist for a vector but I am looking for doing exactly same thing but for images. something like uploaded image but using imhist.

댓글 수: 0
채택된 답변
Image Analyst
2014년 8월 4일
Why can't you just use hist() or histc(), and bar() or plot()???
댓글 수: 2
Image Analyst
2014년 8월 4일
You have to vectorize the array first:
counts = hist(array2d(:), 256);
Otherwise you'll get a histogram for every column in the image.
추가 답변 (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!
