Wand selective_blur() function in Wand python
Another kind of Blur that can be performed using Wand library in python is Selective Blur. Selective blur is similar to normal blur. Difference is that it only effect the part of the image that have contrast below a given quantum threshold. A new attribute named as threshold is introduced in this function.
# radius should always be greater than sigma(standard deviation)
Parameter Input Type Description radius numbers.Real the radius of the, in pixels, not counting the center pixel. sigma numbers.Real the standard deviation, in pixels threshold number.Real Only pixels within contrast threshold are effected.
Image Used :
Example #2: Increase threshold value to 0.5.