Back to Adaptive Vision Library website

You are here: Start » Function Reference » Box » ErodeBox

ErodeBox


Header:AVL.h
Namespace:avl

Performs a morphological erosion on a box using box kernel.

Syntax

C++
C#
 
void avl::ErodeBox
(
	const avl::Box& inBox,
	const int inRadiusX,
	atl::Optional<int> inRadiusY,
	avl::Box& outBox
)

Parameters

Name Type Range Default Description
inBox const Box& Input box
inRadiusX const int 0 - 1 Horizontal radius of the box kernel
inRadiusY Optional<int> 0 - NIL Vertical radius of the box kernel
outBox Box& Eroded box

Description

Performs a morphological erosion on a box using box kernel.

Examples

ErodeBox performed with kernel size 2x1.

See Also

  • ResizeRegion – Enlarges or shrinks a region to new dimensions.