Solved by KFrank in post #2 
              
              
                Hi m3! 

A common approach for this issue is non-maximal suppression.  I don’t 
know of a single, best reference for this, but it is discussed broadly. 
Best. 
K. Frank