Open In App

Wand enhance() function in Python

Improve
Improve
Like Article
Like
Save
Share
Report

Similar to despeckle() function this function also reduces noise of the image. enhance() function return an image with reduced noise of an image by applying an auto-filter.

Syntax : wand.image.enhance() 

Parameters : No parameters in enhance() function

Source Image:

  

Example 1: 

Python3




# Import Image from wand.image module
from wand.image import Image
 
# Read image using Image function
with Image(filename ="koala.jpeg") as img:
    # reduce noise image using enhance() function
    img.enhance()
    img.save(filename ="vkoala.jpeg")


Output:

  

Example 2: 

Source Image:

  

Python3




# Import Image from wand.image module
from wand.image import Image
 
# Read image using Image function
with Image(filename ="road.jpeg") as img:
    # reduce noise image using enhance() function
    img.enhance()
    img.save(filename ="vkoala2.jpeg")


Output:

 


Last Updated : 27 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads