Doubt determine peak value in histogram

1 view (last 30 days)
Dracfov
Dracfov on 17 Mar 2019
Edited: Image Analyst on 17 Mar 2019
have all dear partner in excellent day.
Sorry for the inconvenience.
I have a doubt and maybe you could help me understand.
My question is the following:
Suppose we have a histogram formed by different values.
Y: Represents histogram difference values
X: Consecutive frames
Example:
2.15 3.45 3.67 2.34 1.09 2.20 2.15 .......
a low peak value = 1.09 Is that correct or not?
and what would be the value of that corresponds to half the peak value on the right slope of the peak?
Please be kind enough to clarify the doubt .. Thank you and again my apologize for the inconvenience

Answers (1)

Image Analyst
Image Analyst on 17 Mar 2019
Edited: Image Analyst on 17 Mar 2019
It is not correct. The lowest value in your data will be in the leftmost bin, which is not necessarily the tallest peak of the bins.
To get the tallest bin (peak value) you need to do
counts = histcounts(data);
[maxCounts, tallestBin] = max(counts);
What are your bin edges, or how many bins do you have and what is the range of your data?

Tags

Community Treasure Hunt

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

Start Hunting!