I’m a bit confused by this function argument.
The doc reads :
Peaks are the local maxima in a region of 2 * min_distance + 1 (i.e. peaks are separated by at least min_distance).
In the picture below, I scheme a case with 2 crosses as 2 maxima pixels.
Now if I use min_distance = 1 they are indeed separated by 1 pixel, however in the red square of dimensions 2 * min_distance + 1, there is now more than one maxima…
Unless the doc meant, “in a region of 2 * min_distance + 1, centered on the maxima”
So what does the function actually returns in this case ?