Skip to content

Commit 1fc8d82

Browse files
authored
Merge pull request #7204 from radarhere/kernel
2 parents e3cca42 + da6b2ec commit 1fc8d82

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/PIL/ImageFilter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@ def filter(self, image):
3535

3636
class Kernel(BuiltinFilter):
3737
"""
38-
Create a convolution kernel. The current version only
38+
Create a convolution kernel. The current version only
3939
supports 3x3 and 5x5 integer and floating point kernels.
4040
4141
In the current version, kernels can only be applied to
4242
"L" and "RGB" images.
4343
4444
:param size: Kernel size, given as (width, height). In the current
4545
version, this must be (3,3) or (5,5).
46-
:param kernel: A sequence containing kernel weights.
46+
:param kernel: A sequence containing kernel weights. The kernel will
47+
be flipped vertically before being applied to the image.
4748
:param scale: Scale factor. If given, the result for each pixel is
48-
divided by this value. The default is the sum of the
49+
divided by this value. The default is the sum of the
4950
kernel weights.
5051
:param offset: Offset. If given, this value is added to the result,
5152
after it has been divided by the scale factor.

0 commit comments

Comments
 (0)