Blurring Image means making an image fuzzy or hazy. A blur image is indefinite and it is unable to see an image clearly. Blur is of many types, like – Adaptive blur, Gaussian blur, Selective Blur etc. In order to blur an image we use blur()
function. blur()
function takes three arguments.
Example :

Syntax :
wand.image.blur(radius = "radius_value" ,
sigma = "sigma_value" ,
channel = "optional_channel_value" )
|
Parameters :
Parameter | Input Type | Description |
---|
radius | numbers.real | the radius of the, in pixels, not counting the center pixel. Default is 0.0. |
sigma | numbers.real | the standard deviation of the, in pixels. Default value is 0.0. |
channel | basestring | Optional color channel to apply blur. |
Example #1:
Input Image –

from wand.image import Image
with Image(filename = "koala.jpeg" ) as img:
img.blur(radius = 0 , sigma = 3 )
img.save(filename = "blur_koala.jpeg" )
|
Output:

Example #2:
Input Image –

from wand.image import Image
from wand.display import display
with Image(filename = "human1.jpeg" ) as img:
img.blur(radius = 3 , sigma = 4 , )
img.save(filename = "blurhuman.jpeg" )
display(img)
|
Output:
