Histogram of Binary Image

9 ビュー (過去 30 日間)
kevokvr
kevokvr 2018 年 10 月 11 日
コメント済み: Malu 2020 年 7 月 21 日
I want to know how to get those histograms in the image attached. When I do the usual imhist(im) it doesn't give them to me like that. Please point me in the right direction so I can figure it out.

回答 (1 件)

Image Analyst
Image Analyst 2018 年 10 月 11 日
imhist(binaryImage) should give it to you. Make sure you didn't overplot something in the axes it put it into. Of course the histogram will have only 2 bars for 0 and 1.
  1 件のコメント
Malu
Malu 2020 年 7 月 21 日
Might sound like a stupid question , but I have a binary pattern image and would like to find the peaks (example : All white image with a black stripe in the middle) : when i say imhist(binarypattern that I have) , it is an empty histogram.
how can I find the peak of that pattern?

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

カテゴリ

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