Back to Aurora Vision Library website

You are here: Start » Function Reference » Region » Region Morphology » OpenRegion_AnyKernel

OpenRegion_AnyKernel


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Performs a morphological opening on a region using an arbitrary kernel.

Applications: Removing small parts of a particular shape without making the region thinner.

Syntax

C++
C#
 
void avl::OpenRegion_AnyKernel
(
	const avl::Region& inRegion,
	const avl::Region& inKernel,
	avl::Region& outRegion
)

Parameters

Name Type Default Description
Input value inRegion const Region& Input region
Input value inKernel const Region& Kernel shape (any)
Output value outRegion Region& Output region

Description

The operation is a cousin of the OpenRegion filter, yet it uses any proper region selected by user as a structuring element. The center of a kernel is assumed to be at location (width/2,height/2). Refer to the OpenRegion article for further information regarding the morphological opening itself.

Examples

Errors

List of possible exceptions:

Error type Description
DomainError Empty kernel on input in OpenRegion_AnyKernel.

See Also

  • OpenRegion – Performs a morphological opening on a region using a predefined kernel.