Back to Aurora Vision Library website

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

ErodeBox


Header: AVL.h
Namespace: avl
Module: FoundationLite

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
Input value inBox const Box& Input box
Input value inRadiusX const int 0 - 1 Horizontal radius of the box kernel
Input value inRadiusY Optional<int> 0 - NIL Vertical radius of the box kernel
Output value outBox Box& Eroded box

In-place Processing

This function supports in-place data processing - you can pass the same reference to inBox and outBox

Read more about In-place Computation.

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.