Method FromMoments
FromMoments(Moments)
Returns a ConnectedComponent derived from the spatial moments of a polygon or rasterized shape.
public static ConnectedComponent FromMoments(Moments moments)
Parameters
moments
MomentsThe spatial moments up to third order of a polygon or rasterized shape.
Returns
- ConnectedComponent
A ConnectedComponent object derived from the specified spatial moments. If the area of the connected component is zero, the centroid and orientation angle will be set to NaN.