how to do horizontal projection histogram of an image

4 ビュー (過去 30 日間)
DB
DB 2017 年 2 月 17 日
コメント済み: Rik 2017 年 2 月 21 日
Can any one tell me how to do horizontal projection histogram of an image

採用された回答

Rik
Rik 2017 年 2 月 17 日
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
  2 件のコメント
DB
DB 2017 年 2 月 21 日
Thank you sir ,
I got histogram but how to project the horizontal projection of an image particularly this image
can you please tell me how to do it ....?
Rik
Rik 2017 年 2 月 21 日
There are 3 possibilities for a horizontal projection: a mean, a maximum value and a sum. The mean and the sum differ only in magnitude (and both convert your data to double). The projection convert your 2D image to a 1D signal, so you can use something like bar(A) or plot(A).

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by