Wand wavelet_denoise() function in Python
This method is same as removing noise from image using soften() function. But this method removes noise by applying a wavelet transform which is more convenient and effective. The threshold argument should be a value between 0.0 & quantum_range,
Syntax :
wand.image.wavelet_denoise(threshold, softness)
Parameters :
Parameter |
Input Type |
Description |
threshold |
numbers.Real |
value between 0.0 & quantum_range |
softness |
numbers.Real |
apply softness to image |
Source Image:
Example 1:
Python3
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:
Example 2: Increasing threshold value
Python3
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:
Last Updated :
09 Mar, 2023
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...