how to obtain vertical and horizontal histogram of an image?
1 次查看(过去 30 天)
显示 更早的评论
hi I have an image of face that I devided it into 3 RoIs and now I want to apply analysis of vertical histogram(showing the intensity differences between successive rows,pixel-wise) and horizontal histogram(showing the intensity differences between successive columns,pixel-wise). if anyone know how we can obtain the vertical and horizontal histogram of an image?
0 个评论
采纳的回答
Image Analyst
2013-5-20
What about
[countV, binValuesV] = hist(diff(yourImage, 1, 1))
[countH, binValuesH] = hist(diff(yourImage, 1, 2))
2 个评论
Sudipto Chaki
2018-10-6
I need to draw horizontal and vertical histogram of my image to identify the rectangular ROI region. I used your function. But, it's showing error. What to do?
Image Analyst
2018-10-6
The poster wanted differences, and you don't. See answer to your question here: https://www.mathworks.com/matlabcentral/answers/422483-how-to-draw-vertical-and-horizontal-histogram-of-an-image#answer_340060
更多回答(2 个)
Iain
2013-5-20
plot(mean(image))
plot(mean(image,2))
I think its what you're asking for, but its not really a histogram though.
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!