← Back to all transforms

Sharpen

Description

Sharpen the input image and overlays the result with the original image.

    Args:
        alpha: range to choose the visibility of the sharpened image. At 0, only the original image is
            visible, at 1.0 only its sharpened version is visible. Default: (0.2, 0.5).
        lightness: range to choose the lightness of the sharpened image. Default: (0.5, 1.0).
        p: probability of applying the transform. Default: 0.5.

    Targets:
        image

    

Parameters

  • p: float (default: 0.5)
  • alpha: int | tuple[int, int] | float | tuple[float, float] (default: (0.2, 0.5))
  • lightness: int | tuple[int, int] | float | tuple[float, float] (default: (0.5, 1))

Targets

  • Image

Try it out

Original Image (width = 484, height = 733):

Original

Transformed Image:

Transform not yet applied