フィルターのクリア

It is possible to use hist() function without the binning algorithm inside?

1 回表示 (過去 30 日間)
Baptiste
Baptiste 2016 年 4 月 18 日
コメント済み: Baptiste 2016 年 4 月 18 日
Hi!
I made a LBP function where I get an histogram data, represented by a vector of 256 values, I'll call it HLBP. So the binning is already done, but if I want visualize it with hist(HLBP), the binning algorithm change again the histogram and I get a wrong one.
How can I get this histogram without binning it again?
(When I search about it, the hist description don't show it and here, I get only the answer for how to do the reverse ("Get an binning algorithm without hist"), sorry if I miss something).
Thank you!

採用された回答

Image Analyst
Image Analyst 2016 年 4 月 18 日
As far as I know there is no way to pass in a custom binning algorithm to any of MATLAB's histogram functions. Of course you're welcome to write your own histogram routine with your own binning algorithm. It's not hard.
You say "I want visualize it with hist(HLBP)". If you just need some visualization tool to give a bar chart, then you can use bar
bar(HLBP);
  1 件のコメント
Baptiste
Baptiste 2016 年 4 月 18 日
Great! That I wanted to get... but I wasn't get the keyword during my research (well.... "bar", so simple Facepalm ).
Tank you!

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

その他の回答 (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