File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,18 @@ def filter(self, image):
3535
3636class 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.
You can’t perform that action at this time.
0 commit comments