Back to Aurora Vision Library website
You are here: Start » Function Reference » Point3DGrid » Point3DGrid Fitting » Point3DGridDistance
Point3DGridDistance
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Vision3DStandard |
Computes distances between two input grids.
Syntax
C++
C#
void avl::Point3DGridDistance ( const avl::Point3DGrid& inReference, const avl::Point3DGrid& inCompare, atl::Optional<const avl::Region&> inRoi, const float inThreshold, atl::Array<avl::Point3D>& outCorrectPoints, atl::Array<avl::Point3D>& outIncorrectPoints, float& outMaxDistance, float& outMinDistance, atl::Array<float>& outDistances )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inReference | const Point3DGrid& | Reference grid | |||
inCompare | const Point3DGrid& | Data points for which the distances will be computed. | |||
inRoi | Optional<const Region&> | NIL | Range of points for which the distance will be computed. | ||
inThreshold | const float | 0.0 - | Defines for each data point a maximum allowed distance to the reference grid. | ||
outCorrectPoints | Array<Point3D>& | All data points with distance to the reference grid smaller that the given threshold | |||
outIncorrectPoints | Array<Point3D>& | All data points with distance to reference grid greater that the given threshold | |||
outMaxDistance | float& | Maximum computed distance | |||
outMinDistance | float& | Minimum computed distance | |||
outDistances | Array<float>& | All computed distances |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input point array is empty in Point3DGridDistance. |
DomainError | Region of interest exceeds an input Point3DGrid in Point3DGridDistance. |