Back to Aurora Vision Library website
You are here: Start » Function Reference » Point3DGrid » Point3DGrid Fitting » RemoveOutliersFromPoint3DGrid
RemoveOutliersFromPoint3DGrid
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Vision3DPro |
Removes noise from a given Point3DGrid. All points that are too far from their neighbors are removed.
Syntax
C++
C#
void avl::RemoveOutliersFromPoint3DGrid ( const avl::Point3DGrid& inPointGrid, atl::Optional<const avl::Region&> inRoi, const float inStdDevMultiple, const int inNeighborCount, avl::Point3DGrid& outGrid, float& diagThreshold, float& diagAverageDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPointGrid | const Point3DGrid& | Input Point3DGrid | |||
inRoi | Optional<const Region&> | NIL | Region of interest | ||
inStdDevMultiple | const float | 0.0 - | 1.5f | Allows to set a threshold based on standard deviation of average distances between points on input. | |
inNeighborCount | const int | 1 - | 10 | Defines number of neighbors used to compute average distances between vertices. | |
outGrid | Point3DGrid& | Cleaned input | |||
diagThreshold | float& | Threshold used by the algorithm. | |||
diagAverageDistance | float& | Average distance between input points and their neighborhood |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inNeighborCount is larger than the number of valid points in RemoveOutliersFromPoint3DGrid. |
DomainError | Input grid has no valid points in RemoveOutliersFromPoint3DGrid. |
DomainError | Input grid is empty in RemoveOutliersFromPoint3DGrid. |