Back to FabImage Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » AlignPoint3DArrayToPlane

AlignPoint3DArrayToPlane
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DLite |
Rotates an array of 3D points with a rotation that transforms the input plane to be parallel to XY plane.
Syntax
C++
C#
void fil::AlignPoint3DArrayToPlane ( const ftl::Array<fil::Point3D>& inPoints, const fil::Plane3D& inPlane, ftl::Array<fil::Point3D>& outPoints, ftl::Optional<fil::Matrix&> outTransform = ftl::NIL, ftl::Optional<fil::Matrix&> outInvertedTransform = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point3D>& | ||
![]() |
inPlane | const Plane3D& | The plane that determines rotation transform | |
![]() |
outPoints | Array<Point3D>& | ||
![]() |
outTransform | Optional<Matrix&> | NIL | Matrix of the transform used to align the input points |
![]() |
outInvertedTransform | Optional<Matrix&> | NIL | Matrix of the transform rotating the output points to the input ones |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outTransform, outInvertedTransform.
Read more about Optional Outputs.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite plane on input in AlignPoint3DArrayToPlane. |