how to calculate vertical and horizontal projection histogram for an image

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.

 채택된 답변

Jakob Sørensen
Jakob Sørensen 2012년 4월 17일

0 개 추천

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

Hi Jakob
Thanks for the cosideration to my question.You are actually getting it right.here i want to use different rows/columns for bins.so that i can calculate horizontal and vertical projection histograms and then i also need to find the maximum horizontal and maximum vertical projection.
Hello there, I want to know that when we plot horizontal/vertical histogram of an image, what information can we get from the histogram??
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.

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

추가 답변 (4개)

Rujal
Rujal 2016년 1월 20일

1 개 추천

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

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.

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

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.
Paramesh
Paramesh 2015년 10월 16일

0 개 추천

I got it.Nice.

댓글 수: 2

i would be thankful if can you please show me how you drew vertical and horizontal histograms?
Use histogram() or hist(), or use bar()

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

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

질문:

2012년 4월 17일

댓글:

2016년 1월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by