Core Optical, Inc.
MorphologicalProcessor GetCentroids Method Industrial Strength, Scientific Grade
Gets an array containing the centroids for the input binary objects.

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

public Point[] GetCentroids(
	BinaryObject[] binaryObjects
)

Parameters

binaryObjects
Type:  PrecisionImage.BinarizationAndMorphology BinaryObject 
An >see Array of type BinaryObject.

Return Value

An OnlineArray of type OnlinePoint objects representing the centroids of the input objects.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when the input binaryObjects array is null.
Remarks

Use this method to retrieve an OnlineArray of OnlinePoint objects specifying the centroids of each of the objects in the input BinaryObject array. This method is more efficient than calling GetCentroid(BinaryObject) on each binary object individually.
See Also