Binning¶
Reduces an image in size by combining several neighboring pixels.
Inputs¶
Image (Type: Image)¶
The input image.
XFactor (Type: Int32)¶
The horizontal binning factor.
YFactor (Type: Int32)¶
The vertical binning factor.
Function (Type: String)¶
The binning function.
Comments¶
This function reduces an image in size by combining several neighboring pixels. The binning factor in horizontal and vertical direction can be different. Different mathematical methods for combination can be selected with the binning function.
ArithmeticMean: the aithmetic mean of the neighboring pixels is used.
GeometricMean: the geometric mean of the neighboring pixels is used.
HarmonicMean: the harmonic mean of the neighboring pixels is used.
QuadraticMean: the quadratic mean of the neighboring pixels is used.
Minimum: the minimum of the neighboring pixels is used.
Maximum: the maximum of the neighboring pixels is used.
Midrange: the midrange of the neighboring pixels is used.
Median: the median of the neighboring pixels is used.
Sample¶
Here is an example that bins an image by a factor of 4 in both horizontal and vertical directions.