Skip to content

Commit

Permalink
Merge pull request #7204 from radarhere/kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 9, 2023
2 parents e3cca42 + da6b2ec commit 1fc8d82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/PIL/ImageFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ def filter(self, image):

class Kernel(BuiltinFilter):
"""
Create a convolution kernel. The current version only
Create a convolution kernel. The current version only
supports 3x3 and 5x5 integer and floating point kernels.
In the current version, kernels can only be applied to
"L" and "RGB" images.
:param size: Kernel size, given as (width, height). In the current
version, this must be (3,3) or (5,5).
:param kernel: A sequence containing kernel weights.
:param kernel: A sequence containing kernel weights. The kernel will
be flipped vertically before being applied to the image.
:param scale: Scale factor. If given, the result for each pixel is
divided by this value. The default is the sum of the
divided by this value. The default is the sum of the
kernel weights.
:param offset: Offset. If given, this value is added to the result,
after it has been divided by the scale factor.
Expand Down

0 comments on commit 1fc8d82

Please sign in to comment.