Friday, September 5, 2025
HomeLanguagesWand enhance() function in Python

Wand enhance() function in Python

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:

 

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11863 POSTS0 COMMENTS
Shaida Kate Naidoo
6750 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6701 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS