mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
turn on multiband filters for kernels and gaussian
This commit is contained in:
parent
8d4681ff67
commit
b1c1a22401
|
@ -39,6 +39,7 @@ class Kernel(Filter):
|
||||||
:param offset: Offset. If given, this value is added to the result,
|
:param offset: Offset. If given, this value is added to the result,
|
||||||
after it has been divided by the scale factor.
|
after it has been divided by the scale factor.
|
||||||
"""
|
"""
|
||||||
|
is_multiband = True
|
||||||
|
|
||||||
def __init__(self, size, kernel, scale=None, offset=0):
|
def __init__(self, size, kernel, scale=None, offset=0):
|
||||||
if scale is None:
|
if scale is None:
|
||||||
|
@ -148,6 +149,7 @@ class GaussianBlur(Filter):
|
||||||
:param radius: Blur radius.
|
:param radius: Blur radius.
|
||||||
"""
|
"""
|
||||||
name = "GaussianBlur"
|
name = "GaussianBlur"
|
||||||
|
is_multiband = True
|
||||||
|
|
||||||
def __init__(self, radius=2):
|
def __init__(self, radius=2):
|
||||||
self.radius = radius
|
self.radius = radius
|
||||||
|
@ -171,6 +173,7 @@ class UnsharpMask(Filter):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
name = "UnsharpMask"
|
name = "UnsharpMask"
|
||||||
|
is_multiband = True
|
||||||
|
|
||||||
def __init__(self, radius=2, percent=150, threshold=3):
|
def __init__(self, radius=2, percent=150, threshold=3):
|
||||||
self.radius = radius
|
self.radius = radius
|
||||||
|
|
Loading…
Reference in New Issue
Block a user