MATLAB: How to do horizontal projection histogram of an image

histogramhorizontal

Can any one tell me how to do horizontal projection histogram of an image

Best Answer

You mean something like this?
A=imread('pout.tif');%load image
A=mean(A,1);%get the mean (or use sum or max) - these convert the data to double
histogram(A)%generate histogram