Core Optical, Inc.
MorphologicalProcessor GetCentralMoments Method Industrial Strength, Scientific Grade
Gets an array of values representing the central spatial geometric moments of the input binary objects.

Namespace: PrecisionImage.BinarizationAndMorphology
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public double[] GetCentralMoments(
	BinaryObject[] binaryObjects,
	int RowOrder,
	int ColumnOrder,
	bool Normalize = false
)

Parameters

binaryObjects
Type:  PrecisionImage.BinarizationAndMorphology BinaryObject 
An OnlineArray of type BinaryObject whose moments are to be computed.
RowOrder
Type: OnlineSystem Int32
An OnlineInt32 specifying the row order of the moment. This must be a positive value.
ColumnOrder
Type: OnlineSystem Int32
An OnlineInt32 specifying the column order of the moment. This must be a positive value.
Normalize (Optional)
Type: OnlineSystem Boolean
A OnlineBoolean indicating whether or not to normalize the computed moment to the binary object's area.

Return Value

An OnlineArray of type OnlineDouble representing the spatial geometric moments of the input binary objects.
Exceptions

Remarks

Use this method to retrieve an OnlineArray of OnlinePoint objects representing the spatial geometric moments (of specified order and normalization) of the input binary objects. This method is more efficient than calling GetCentralMoment(BinaryObject, Int32, Int32, Boolean) on a series of individual binary objects.

See GetCentralMoment(BinaryObject, Int32, Int32, Boolean) for information on how this value is computed.

See Also