Fits a 3D line from a 3D point set.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D (in Cognex.VisionPro3D.dll) Version: 79.0.0.0
Syntax
Parameters
- pointsPhys3D
- Type: Cognex.VisionPro3D Cog3DVect3Collection
A 3D point collection.
Return Value
Type: Cog3DLineFitterUsing3DPointsResultA Cog3DLineFitterUsing3DPointsResult containing the fitted line and 3D residuals.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If the input argument is null. |
| ArgumentException | If pointsPhys3D.Count is less than 2. |
| Cog3DException | If a 3D line cannot be fitted. |
See Also