Wavelet Denoising in Python using Wand (original) (raw)

Last Updated : 15 Jun, 2026

Wavelet denoising is a technique used to reduce noise in images while preserving important details and edges. The wavelet_denoise() method in the Wand library applies wavelet-based noise reduction, providing an effective way to enhance image quality without excessive blurring.

**Syntax

wavelet_denoise(threshold, softness)

**Parameters:

Implementation

The following example demonstrates how to apply wavelet denoising to an image using the Wand library. A threshold value is specified to identify and suppress noise components while preserving important image features.

**Source Image:

Python `

from wand.image import Image

with Image(filename ="koala.jpeg") as img:

img.wavelet_denoise(threshold = 0.05 * img.quantum_range,
                    softness = 0.0)
img.save(filename ="vkoala.jpeg")

`

**Output:

The output image contains reduced noise while maintaining the overall structure and visual details of the original image.

Effect of Increasing Threshold

Increasing the threshold value results in stronger noise reduction. However, excessively large values may remove fine image details along with the noise.

Python `

from wand.image import Image

with Image(filename ="koala.jpeg") as img:

img.wavelet_denoise(threshold = 0.065 * img.quantum_range,
                    softness = 0.00)
img.save(filename ="vkoala2.jpeg")

`

**Output:

The image appears smoother due to stronger denoising, although some fine textures may become less prominent.

Advantages

Limitations