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
Input value inReference const Point3DGrid& Reference grid
Input value inCompare const Point3DGrid& Data points for which the distances will be computed.
Input value inRoi Optional<const Region&> NIL Range of points for which the distance will be computed.
Input value inThreshold const float 0.0 - Defines for each data point a maximum allowed distance to the reference grid.
Output value outCorrectPoints Array<Point3D>& All data points with distance to the reference grid smaller that the given threshold
Output value outIncorrectPoints Array<Point3D>& All data points with distance to reference grid greater that the given threshold
Output value outMaxDistance float& Maximum computed distance
Output value outMinDistance float& Minimum computed distance
Output value 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.