Wand statistic() function in Python
Statistic effect is similar to Spread effect, the only difference is that, it replaces each pixel with the result of a mathematical operation performed against neighboring pixel values.The width & height defines the size, or aperture, of the neighboring pixels.
The type of statistic operations can be any of the following:
Syntax : wand.image.statistic(stat, width, height, channel)
Parameter Input Type Description stat basestring The type of statistic to calculate. See STATISTIC_TYPES. width numbers.Integral The size of neighboring pixels on the X-axis. height numbers.Integral The size of neighboring pixels on the Y-axis. channel basestring Optional color channel to target.
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