how to calculate vertical and horizontal projection histogram for an image

4 visualizaciones (últimos 30 días)
Hi guys I am doing a project on offline signature recognition and verification. I hove done till thining process of an image. Now i need to calculate vertical and horizontal projection histogram for this image. Can any body suggest me some code for this. Thanks.

Respuesta aceptada

Jakob Sørensen
Jakob Sørensen el 17 de Abr. de 2012
Let me see if I get this right... You want to make a histogram, but instead of having a color intensity as bin numbers, you want to use the different rows/columns for bins?
  3 comentarios
Rageeni sah
Rageeni sah el 17 de Abr. de 2014
Hello there, I want to know that when we plot horizontal/vertical histogram of an image, what information can we get from the histogram??
Image Analyst
Image Analyst el 17 de Abr. de 2014
I don't think he meant histogram. He probably just doesn't know the the proper terminology. If you sum an image across or down you get the profile or projection, not histogram. If you have a binary image of text, then the histogram of the projections doesn't really tell you much of any use . But by looking at the projection you can determine where lines of text start and stop. Start your own thread and post your own image if you want specific help.

Iniciar sesión para comentar.

Más respuestas (4)

Rujal
Rujal el 20 de En. de 2016
can anyone please help me to create feature vector of vertical and horizontal projection histogram. please give me a matlab code on rujubhandari007@gmail.com . . . Thanks in advance
  1 comentario
Image Analyst
Image Analyst el 20 de En. de 2016
Not sure what that means. A projection of data along a dimension, and a histogram (frequency distribution) are different things. Start your own question and attach your data and what you'd like to get from it.

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 17 de Abr. de 2012
sum(YourImage,1) %vertical projection
sum(YourImage,2) %horizontal projection
This assumes YourImage is binary. If it isn't, you need to define what you mean by "projection" of multiple colors.

si sam
si sam el 8 de Oct. de 2015
to Jyoti : did you get it?

Paramesh
Paramesh el 16 de Oct. de 2015
I got it.Nice.
  2 comentarios
si sam
si sam el 21 de Oct. de 2015
i would be thankful if can you please show me how you drew vertical and horizontal histograms?

Iniciar sesión para comentar.

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