Aug-13-2020, 09:01 AM
I have a grayscale image (2d matrix), and I want to extract N (defined integer) maximas (marked in red).
I don't want them to be clustered all together near each other (the result of directly looking for top N points).
I would like these points to be spread all over the image (like shown bellow), with higher density where the values are high, and lower density where the values are low. I am looking for an efficient python algorithm for the task.
Thanks.
I don't want them to be clustered all together near each other (the result of directly looking for top N points).
I would like these points to be spread all over the image (like shown bellow), with higher density where the values are high, and lower density where the values are low. I am looking for an efficient python algorithm for the task.
Thanks.