Description
Applies a variance-based filter, to be used for contour, edge, and texture detection.
-
Return Type
-
A McImage object.
The resulting McImage.
-
Syntax
-
object.Variance ([SizeX], [SizeY], [vSourceImg])
The Variance Method syntax has these parts: |
| object | An expression evaluating to an object of type McEdges. | | SizeX | Optional. A Long value. Width of the neighborhood in which the variance is calculated.
| | SizeY | Optional. A Long value. Height of the neighborhood in which the variance is calculated.
| | vSourceImg | Optional. A Variant value. Optional input McImage or McRegionAccess.
| Remarks
The variance filter works by calculating the square root of the variance (i.e., the standard deviation) of pixel intensities within a moving neighborhood (kernel). The central pixel of this neighborhood receive the calculated value. Higher contrast and high texture areas will produce higher variance values. Uniform or low contrast areas will produce low variance values.
Exceptions
The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.
|