Multiple image histogram on the same figure

5 次查看(过去 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.

采纳的回答

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