1 | initial version |
The general term for a histogram peak in statistics is "mode," (see for example https://link.springer.com/chapter/10.1007/978-0-387-74378-3_7) so for example if you have two local peaks, that would be called a "bimodal" distribution. In image histograms, it's common to have several strong modes. The main challenge in this type of case is the noise, so you would probably want to smooth the histogram before doing some kind of local maximum detection. I would look at what information you're trying to extract and decide how many modes you "should" have, and apply a blur. Like Avio says, the world is full of find_peak functions from that point. The art here is going to be in figuring out how much blur to use, which will be determined by how much separation you expect between the modes.