apply_gaussian_blur#
- omnipose.utils.apply_gaussian_blur(image, kernel_size, sigma)[source]#
Applies a Gaussian blur to the image.
- Parameters
image (torch.Tensor) -- The image to blur.
kernel_size (int) -- The size of the Gaussian kernel.
sigma (float) -- The standard deviation of the Gaussian distribution.
- Returns
The blurred image.
- Return type
torch.Tensor