Back to Aurora Vision Library website

You are here: Start » Function Reference » Surface » Surface Interpolations » SmoothSurface_Mean

SmoothSurface_Mean


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Smooths a surface by averaging heights within a rectangular kernel.

Applications: Usually used for computing features related to local surface "windows". Can be also used for noise removal, but Gauss is superior here.

Syntax

C++
C#
 
void avl::SmoothSurface_Mean
(
	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 value inRoi Optional<const Region&> NIL Range of points to be computed
Input value inKernel KernelShape::Type Kernel shape
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&

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

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