MATLAB Answers

Dracfov
0

Doubt determine peak value in histogram

Asked by Dracfov
on 17 Mar 2019 at 14:38
Latest activity Edited by Image Analyst
on 17 Mar 2019 at 14:51
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

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Image Analyst
on 17 Mar 2019 at 14:48
Edited by Image Analyst
on 17 Mar 2019 at 14:51

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?

  0 Comments

Sign in to comment.