pixel_level_peak_finder_2d¶
giant.image_processing.peak_finders
:
- giant.image_processing.peak_finders.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 (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – 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.
- Raises:
ValueError – If the provided surface is not 2 dimensional
- Return type:
ndarray[tuple[Any, …], dtype[integer]]