Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

make clear what unsharp mask does (#1310)

Dmytro Mishkin347163d53948
diff --git a/kornia/filters/unsharp.py b/kornia/filters/unsharp.py
index be2483aa3..ee5daeaa4 100644
--- a/kornia/filters/unsharp.py
+++ b/kornia/filters/unsharp.py
@@ -9,7 +9,7 @@ from kornia.filters import gaussian_blur2d
def unsharp_mask(
input: torch.Tensor, kernel_size: Tuple[int, int], sigma: Tuple[float, float], border_type: str = 'reflect'
) -> torch.Tensor:
- r"""Create an operator that blurs a tensor using the existing Gaussian filter available with the Kornia library.
+ r"""Create an operator that sharpens a tensor by applying operation out = 2 * image - gaussian_blur2d(image).
.. image:: _static/img/unsharp_mask.png
@@ -36,7 +36,7 @@ def unsharp_mask(
class UnsharpMask(nn.Module):
- r"""Create an operator that sharpens image using the existing Gaussian filter available with the Kornia library..
+ r"""Create an operator that sharpens image with: out = 2 * image - gaussian_blur2d(image).
Args:
kernel_size: the size of the kernel.