how to obtain vertical and horizontal histogram of an image?

2 visualizaciones (últimos 30 días)
neda
neda el 20 de Mayo de 2013
Comentada: Image Analyst el 6 de Oct. de 2018
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?

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Mayo de 2013
What about
[countV, binValuesV] = hist(diff(yourImage, 1, 1))
[countH, binValuesH] = hist(diff(yourImage, 1, 2))
  2 comentarios
Sudipto Chaki
Sudipto Chaki el 6 de Oct. de 2018
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?

Iniciar sesión para comentar.

Más respuestas (2)

Iain
Iain el 20 de Mayo de 2013
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 el 21 de Feb. de 2018
what is the syntax of bvertical histogram ?

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by