필터 지우기
필터 지우기

Multiple image histogram on the same figure

조회 수: 3 (최근 30일)
chess
chess 2014년 8월 4일
댓글: Image Analyst 2014년 8월 4일
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.

채택된 답변

Image Analyst
Image Analyst 2014년 8월 4일
Why can't you just use hist() or histc(), and bar() or plot()???
  댓글 수: 2
chess
chess 2014년 8월 4일
Because when I do that I get something like: which is very strange.
Image Analyst
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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by