denoise#
- denoise(mask: ndarray, radius: int) ndarray [source]#
Apply morphological opening /w circular kernel to remove hi-freq noise.
- Parameters
mask (np.ndarray) – the binary mask to remove noise from.
radius (int) – size in pixels of kernel for morphological op.
- Returns
The mask after applying denoising.
- Return type
np.ndarray