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?

댓글을 달려면 로그인하십시오.

추가 답변 (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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by