Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Wand image.despeckle() in Python

  • Last Updated : 16 Jul, 2021

Despeckle effect is used to remove noise from the images without blurring edges. The Despeckle filter smoothes areas in which noise is noticeable and leaves complex areas untouched. Despeckling is one of the many techniques you can use to reduce noise on a given image. In order to perform Despeckle effect on image despeckle() function is used.
 

Syntax : wand.image.despeckle()
Parameters : No parameters 
Return : An image is returned

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course

Example #1:
Image Used : 
 



 

Python3




# import Image from wand.image module
from wand.image import Image
 
with Image(filename ="koala.jpeg") as img:
    # perform despeckle effect
    img.despeckle()
 
    # save final image
    img.save(filename ="despeckle_koala.jpg")

Output : 
 

Example #2:
Image Used : 
 

 

Python3




# import Image from wand.image module
from wand.image import Image
 
with Image(filename ="frameman.jpeg") as img:
    # perform despeckle effect
    img.despeckle()
 
    # save final image
    img.save(filename ="despeckle_frameman.jpg")

Output : 
 

 




My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!