Back to Adaptive Vision Library website

You are here: Start » Function Reference » Surface » Surface Spatial Transforms » ErodeSurfacePoints

ErodeSurfacePoints


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Removes some existing points from the input surface when some points in their vicinity are missing.

Syntax

C++
C#
 
void avl::ErodeSurfacePoints
(
	const avl::Surface& inSurface,
	atl::Optional<const avl::Region&> inRoi,
	avl::KernelShape::Type inKernel,
	int inRadiusX,
	atl::Optional<int> inRadiusY,
	bool inPreserveDimensions,
	avl::Surface& outSurface
)

Parameters

Name Type Range Default Description
inSurface const Surface& Input surface
inRoi Optional<const Region&> NIL Region of interest
inKernel KernelShape::Type Kernel shape (predefined)
inRadiusX int 0 - 1 Nearly half of the kernel's width (2*R+1)
inRadiusY Optional<int> 0 - NIL Nearly half of the kernel's height (2*R+1), or same as inRadiusX
inPreserveDimensions bool Flag indicating whether the surface dimensions should be preserved or not
outSurface Surface& Output surface

Description

The operation removes some existing points from the input surface when some points in their vicinity are missing. Internally the region of surface valid points is eroded using defined kernel. The surface points in locations that have vanished because of the erosion are removed and substituted with indefinite points.

See Also

  • SurfaceValidPointsRegion – Computes region of locations where points are valid in a surface and where they are invalid.
  • ErodeRegion – Performs a morphological erosion on a region using a predefined kernel.