Back to FabImage Library website
You are here: Start » Function Reference » Point3DGrid » Point3DGrid Spatial Transforms » CropPoint3DGridByNeighborsProximity

CropPoint3DGridByNeighborsProximity
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DLite |
Removes from the grid points that are too distant from their neighbor points.
Syntax
C++
C#
void fil::CropPoint3DGridByNeighborsProximity ( const fil::Point3DGrid& inPoint3DGrid, const int inNeighborRadius, const float inMaxDistance, fil::Metric3D::Type inMetric, const float inMinNeighborRatio, fil::Point3DGrid& outPoint3DGrid )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint3DGrid | const Point3DGrid& | |||
![]() |
inNeighborRadius | const int | 1 - ![]() |
1 | Radius of neighbors to search for real neighbors |
![]() |
inMaxDistance | const float | 0.0 - ![]() |
2.0f | Maximal distance from another point to consider them real neighbors |
![]() |
inMetric | Metric3D::Type | Z | Metric used for measuring distance between points | |
![]() |
inMinNeighborRatio | const float | 0.0 - 1.0 | 1.0f | Fraction of valid neighbors in a given radius that have to be real neighbors |
![]() |
outPoint3DGrid | Point3DGrid& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Incorrect metric in CropPoint3DGridByNeighborsProximity. |