Python – spread()method in Wand
Spread replaces each pixel with the random pixel value found nearby. spread() function is used to apply Spread effect to the image. The size of the area to search for a new pixel can be controlled by defining a radius.
Syntax :wand.image.spread(radius, method)
Parameter Input Type Description radius numbers.Real Distance a pixel can be displaced from source. Default value is 0.0, which will allow ImageMagick to auto select a radius. method basestring Interpolation method. Only available with ImageMagick-7. Optional parameter.
Example 2: Increase radius value in spread() method.
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