Detection of local intensity maxima

This method passes through each pixel of the filtered image F and determines if the pixel intensity F\left(x,y\right) is greater than a user-specified threshold and at the same time greater than or equal to all values within a 4- or 8-connected neighborhood. If this condition holds, the point is accepted as a candidate molecule for further processing.