How to build horizontal and vertical histogram for a grayscale image

Hello friends, I have to find the histogram i.e.horizontal histogram and vertical histogram for the grayscale image,which i need it for my project on Human Action Recognition,i am not aware of the concept of horizontal histogram and vertical histogram.Can anyone tell me what does horizontal and vertical histogram mean and provide matlab code for building them...Please help me with this........Thank you

1 Comment

I'm not either. Never heard of them. Can you supply more information or context?

Sign in to comment.

Answers (1)

There are several questions here:
Are you trying to lay out three axes (one for the image, and then two long skinny ones for histograms?) If so, subplot and axes will help.
Do you have the data and just not know how to do a horizontal bar plot? If so, barh will help.
Do you not know how to gather the data for the histograms? hist will help, as will some indexing into the matrix.
Help us to help you by editing your question (NOT answering it) to reflect this information.

Asked:

on 24 Oct 2011

Community Treasure Hunt

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

Start Hunting!