Back to Aurora Vision Library website

You are here: Start » Function Reference » ShapeRegion » Shape Region Morphology » ErodeShapeRegion

ErodeShapeRegion


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Performs a morphological erosion on a shape region.

Applications: Making the shape region thinner or removing small parts.

Syntax

C++
C#
 
void avl::ErodeShapeRegion
(
	const avl::ShapeRegion& inShapeRegion,
	const float inRadius,
	avl::ShapeRegion& outShapeRegion
)

Parameters

Name Type Range Default Description
Input value
inShapeRegion const ShapeRegion&
Input value
inRadius const float 0.0 - 1.0f
Output value
outShapeRegion ShapeRegion&

Errors

List of possible exceptions:

Error type Description
DomainError Unable to create Polygon from ShapeRegion in ErodeShapeRegion.