Core Optical, Inc.
MorphologicalProcessor GetCentroid Method Industrial Strength, Scientific Grade
Gets the centroid of the specified binary object.

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

public Point GetCentroid(
	BinaryObject binaryObject
)

Return Value

A OnlinePoint indicating the coordinates of the BinaryObject centroid.
Exceptions

Remarks

Use this method to retrieve the centroid of a BinaryObject. The centroid is the XY coordinate of the object's "center of gravity" and is given with respect to the image origin (the upper-left corner of the containing BinaryMask).
See Also