## Doubt determine peak value in histogram

### Dracfov (view profile)

on 17 Mar 2019
Latest activity Edited by Image Analyst

### Image Analyst (view profile)

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

### Image Analyst (view profile)

Answer by Image Analyst

### Image Analyst (view profile)

on 17 Mar 2019
Edited by Image Analyst

### Image Analyst (view profile)

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?