Table of Contents

Method FromMoments

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

FromMoments(Moments)

Returns a ConnectedComponent derived from the spatial moments of a polygon or rasterized shape.

public static ConnectedComponent FromMoments(Moments moments)

Parameters

moments Moments

The 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.