Back to Aurora Vision Library website

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

DilateSurfacePoints


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Reconstructs missing points of the input surface by interpolating neighboring points.

Syntax

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

Parameters

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

Description

The operation reconstructs some of missing points of the input surface by interpolating their neighboring points. Internally the region of surface valid points is dilated using defined kernel. Every missing point in location that have emerged because of the dilation is substituted with the arithmetic mean of existing points in locations that would be covered by the kernel if the middle of the kernel was precisely over the missing point location.

Errors

List of possible exceptions:

Error type Description
DomainError Region of interest exceeds an input surface in DilateSurfacePoints.

See Also

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