giant.image_processing.pixel_level_peak_finder_2d

giant.image_processing.pixel_level_peak_finder_2d(surface, blur=True)[source]

This function returns a numpy array containing the (x, y) location of the maximum surface value to pixel level accuracy.

Optionally, a blur can be applied to the surface before locating the peak to attempt to remove high frequency noise.

Parameters
  • surface (Union[Sequence[Sequence], numpy.ndarray]) – A surface, or image, to use

  • blur (bool) – A flag to indicate whether to apply Gaussian blur to image

Returns

The (x, y) location of the maximum surface values to pixel level accuracy.

Return type

numpy.ndarray