You are here: Start » AVL.NET » Function Reference » Region » Region Morphology » AVL.TopHatRegion

AVL.TopHatRegion

Performs a morphological white top hat operation on a region using a predefined kernel.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TopHatRegion
(
	AvlNet.Region inRegion,
	AvlNet.KernelShape inKernel,
	int inRadiusX,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inKernelAvlNet.KernelShapeKernel shape (predefined).
inRadiusXint<0, INF>1Nearly half of the kernel's width (2*R+1). Default value: 1.
outRegionAvlNet.RegionOutput region.

Description

Extracts from region small parts. Uses predefined kernels.

Is performed by running consecutively two filters. OpenRegion to remove small parts from region and RegionDifference to remove rest of the region.

Examples

Top Hat used to remove bigger parts of region. Used parameters inKernel=Ellipse and inRadiusX=5. Region marked white. Source image on the left and result on the right.

Errors

List of possible exceptions:

Error type Description
DomainError Unsupported kernel in TopHatRegion.

Function Overrides

See also