You are here: Start » FIL.NET » Function Reference » Region » Region Morphology » FIL.TopHatRegion
Performs a morphological white top hat operation on a region using a predefined kernel.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void TopHatRegion ( FilNet.Region inRegion, FilNet.KernelShape inKernel, int inRadiusX, int? inRadiusY, FilNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | FilNet.Region | Input region. | |||
inKernel | FilNet.KernelShape | Kernel shape (predefined). | |||
inRadiusX | int | <0, INF> | 1 | Nearly half of the kernel's width (2*R+1). Default value: 1. | |
inRadiusY | int? | <0, INF> | Nearly half of the kernel's height (2*R+1), or same as inRadiusX. Default value: ftl::NIL. | ||
outRegion | FilNet.Region | Output 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
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Unsupported kernel in TopHatRegion. |