How to use histfit for my histogram data

1 回表示 (過去 30 日間)
Eric
Eric 2013 年 7 月 26 日
コメント済み: Daniel Bridges 2017 年 2 月 1 日
Dear MATLAB users,
I have a histogram data derived from the following codes:
[counts, bwhist] = imhist(septumMask, mymap);
figure; stem(bwhist, counts2)
The histogram produces a result like this: http://s7.postimg.org/mo9hvo2zv/image_1.png
I would like to curve fit the histogram using histfit function.
figure; histfit(counts, length(bwhist))
and I also had tried this code:
figure; histfit(counts, [])
The result of my second attempt is: http://s23.postimg.org/f5tgs1rcr/untitled.png
As you can observe from my two attempts result, the histogram x axis, y axis are wrong.
I would like to achieve the curve fitting based on my original histogram image.
Could you highlight which steps I have missed when I am using "histfit" function? Or which built-in functions do you suggest?
Thank you.
  2 件のコメント
per isakson
per isakson 2013 年 7 月 27 日
編集済み: per isakson 2013 年 7 月 27 日
Clicking the links returns The page you were looking for doesn't exist. However, copy&paste works. Have you used "<<url>>"? Should be "<url>" without citation marks.
Eric
Eric 2013 年 7 月 27 日
Thank you for highlighting the URL error. I have changed it.

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

採用された回答

Elad
Elad 2013 年 7 月 27 日
There is an excellent guide with examples for Histogram Adjustments in MATLAB here: http://imageprocessingblog.com/histogram-adjustments-in-matlab-part-i/
  1 件のコメント
Daniel Bridges
Daniel Bridges 2017 年 2 月 1 日
This webpage is now a GoDaddy placeholder advertisement: Apparently the webmaster has abandoned this domain name.
There appears to be a continuation via WordPress, but this also references the defunct GoDaddy site for part 1.

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

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