Wand unsharp_mask() function – Python
unsharp_mask() is similar to normal sharpen() method in python Wand, but it gives control toblend between filter and original(amount parameter), and the threshold. When the amount value is greater than 1.0 more if the sharpen filter is applied, and less if the value is under 1.0. Values for threshold over 0.0 reduce the sharpens.
wand.image.unsharp_mask(radius, sigma, amount, threshold)
Parameter Input Type Description radius numbers.Real Size of gaussian aperture. sigma numbers.Real the standard deviation of the Gaussian, in pixels. amount numbers.Real The percentage of the difference between the original and the blur image that is added back into the original threshold numbers.Real The threshold in pixels needed to apply the difference amount.
Source Image :
Example 2: Increasing threshold value to 0.5 and dicreasing radius and sigma.
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