Skip to content

Commit

Permalink
fix: remove default value of radius parameter of blur (#378)
Browse files Browse the repository at this point in the history
### Summary of Changes

* Remove default value of `radius` parameter of `Image.blur` to be in
line with other methods.
  • Loading branch information
lars-reimann committed Jun 23, 2023
1 parent 544e307 commit 7f07f29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/safeds/data/image/containers/_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from PIL.Image import open as open_image

from safeds.data.image.typing import ImageFormat
from safeds.exceptions._data import WrongFileExtensionError
from safeds.exceptions import WrongFileExtensionError


class Image:
Expand Down Expand Up @@ -352,15 +352,15 @@ def adjust_contrast(self, factor: float) -> Image:
image_copy._image = ImageEnhance.Contrast(image_copy._image).enhance(factor)
return image_copy

def blur(self, radius: int = 1) -> Image:
def blur(self, radius: int) -> Image:
"""
Return the blurred image.
Parameters
----------
radius : int
Radius is directly proportional to the blur value. The radius is equal to the amount of pixels united in each direction.
A Radius of 1 will result in a united box of 9 pixels.
Radius is directly proportional to the blur value. The radius is equal to the amount of pixels united in
each direction. A radius of 1 will result in a united box of 9 pixels.
Returns
-------
Expand Down

0 comments on commit 7f07f29

Please sign in to comment.