Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 3D Spatial Transforms » CropSurfaceByNeighborsProximity
CropSurfaceByNeighborsProximity
Removes from the surface points that are too distant from their neighbor points.
Syntax
C++
C#
void avl::CropSurfaceByNeighborsProximity ( const avl::Surface& inSurface, const int inNeighborRadius, const float inMaxDistance, avl::Metric3D::Type inMetric, const float inMinNeighborRatio, avl::Surface& outSurface, atl::Optional<avl::Region&> outRejected = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSurface | const Surface& | ||||
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 | |
outSurface | Surface& | ||||
outRejected | Optional<Region&> | NIL | Region of locations where points are too distant from their neighbors |
Errors
Error type | Description |
---|---|
DomainError | Incorrect metric in CropSurfaceByNeighborsProximity. |