mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-04 04:20:10 +03:00
Merge 4e397a4d1c
into 7c3431663f
This commit is contained in:
commit
648a801cbd
|
@ -157,7 +157,7 @@ class GaussianBlur(Filter):
|
|||
name = "GaussianBlur"
|
||||
|
||||
def __init__(self, radius=2):
|
||||
self.radius = 2
|
||||
self.radius = radius
|
||||
def filter(self, image):
|
||||
return image.gaussian_blur(self.radius)
|
||||
|
||||
|
@ -168,7 +168,7 @@ class UnsharpMask(Filter):
|
|||
name = "UnsharpMask"
|
||||
|
||||
def __init__(self, radius=2, percent=150, threshold=3):
|
||||
self.radius = 2
|
||||
self.radius = radius
|
||||
self.percent = percent
|
||||
self.threshold = threshold
|
||||
def filter(self, image):
|
||||
|
|
Loading…
Reference in New Issue
Block a user