You are here: Start » AVL.NET » Function Reference » Region » Region Morphology » AVL.BottomHatRegion
Performs a morphological black top hat (bottom hat) operation on a region using a predefined kernel.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void BottomHatRegion ( AvlNet.Region inRegion, AvlNet.KernelShape inKernel, int inRadiusX, AvlNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | AvlNet.Region | Input region. | |||
inKernel | AvlNet.KernelShape | Kernel shape (predefined). | |||
inRadiusX | int | <0, INF> | 1 | Nearly half of the kernel's width (2*R+1). Default value: 1. | |
outRegion | AvlNet.Region | Output region. |
Description
Extracts small parts which do not belong to region. Uses predefined kernels.
Is performed by running consecutively two filters. CloseRegion to remove small holes from region and RegionDifference to remove rest of the region.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Unsupported kernel in BottomHatRegion. |