MATLAB Answers

how to detect the widest peak of a histogram?

2 views (last 30 days)
neda
neda on 20 May 2013
dear all, I have a histogram of an image that for detecting a certain point in that image I need to detect the center of the widest peak of this histogram.Can anyone help about this issue?

  1 Comment

Amith Kamath
Amith Kamath on 20 May 2013
could you elaborate on 'center of the widest peak'? It is always helpful to know what you have already tried as well.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 21 May 2013
The definition of a "peak" is not so straightforward, especially when you have noise. Does that little noise peak on the shoulder of a bigger peak mean that that hump is now actually two peaks instead of one big one with a little bit of noise?
Do you have the Signal Processing Toolbox? If so play around with findpeaks(). Or else search the File Exchange - there are several peak detectors in there I believe.
Feel free to post your image or a screenshot of your histogram if you think that would help us help you. You can post here http://snag.gy

  1 Comment

Image Analyst
Image Analyst on 22 May 2013
So are we done with this question???

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by