how to obtain vertical and horizontal histogram of an image?

1 回表示 (過去 30 日間)
neda
neda 2013 年 5 月 20 日
コメント済み: Image Analyst 2018 年 10 月 6 日
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?

採用された回答

Image Analyst
Image Analyst 2013 年 5 月 20 日
What about
[countV, binValuesV] = hist(diff(yourImage, 1, 1))
[countH, binValuesH] = hist(diff(yourImage, 1, 2))
  2 件のコメント
Sudipto Chaki
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
Image Analyst 2018 年 10 月 6 日

サインインしてコメントする。

その他の回答 (2 件)

Iain
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.

emad shokrallah
emad shokrallah 2018 年 2 月 21 日
what is the syntax of bvertical histogram ?

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by