Wand rotational_blur() function in Python
Another type of Blur that can be performed in Wand python library is rotational blur. Rotational Blur is quite similar to Motion Blur but in this the motion of blur is circular. rotational_blur() function blur an image in a radius around the center of an image. Unlike the other blur methods, there is no radius or sigma arguments.
Syntax :
Python3
wand.image.rotational_blur( angle = angle_value,
channel = "optional_channel_value")
|
Parameter :
Parameter |
Input Type |
Description |
angle |
basestring |
Degrees of rotation to blur with. |
channel |
numbers.Real |
Optional channel to apply the effect against. |
Image Used :
Example #1:
Python3
from wand.display import display
from wand.image import Image
with Image(filename = "koala.jpeg") as img:
img.rotational_blur(angle = 10 )
img.save(filename = "rb_koala.jpeg")
display(img)
|
Output :
Example #2: Increase angle to 30.
Python3
from wand.display import display
from wand.image import Image
with Image(filename = "koala.jpeg") as img:
img.rotational_blur(angle = 30 )
img.save(filename = "gb_koala.jpeg")
display(img)
|
Output :
Last Updated :
27 Mar, 2023
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...