qudi.util.filters
This file contains Qudi methods for data filtering.
Functions
|
Filter out impulsive noise from a 2D array along a single axis using an opening filter. |
- qudi.util.filters.scan_blink_correction(image, axis=1)[source]
Filter out impulsive noise from a 2D array along a single axis using an opening filter.
The opening filter applies a sequence of two filters: first a min-filter and then a max-filter. This technique is effective at removing single-pixel brightness spikes along the specified axis, but it may make the image appear more “blocky” or less smooth.
- Parameters:
- imagenumpy.ndarray
A 2D numpy array to be filtered (e.g., image data).
- axisint
The axis along which to apply the 1D filter.
- Returns:
- numpy.ndarray
The filtered image, with the same dimensions as the input image.
Notes
Ensure that the image features of interest are larger than the impulsive noise spikes to achieve effective noise reduction without loss of significant image detail.