Start » Filter Reference » Region » Region Morphology » BottomHatRegion
Module: | FoundationBasic |
---|
Performs a morphological black top hat (bottom hat) operation on a region using a predefined kernel.
Name | Type | Range | Description | |
---|---|---|---|---|
inRegion | Region | Input region | ||
inKernel | KernelShape | Kernel shape (predefined) | ||
inRadiusX | Integer | 0 - | Nearly half of the kernel's width (2*R+1) | |
inRadiusY | Integer* | 0 - | Nearly half of the kernel's height (2*R+1), or same as inRadiusX | |
outRegion | 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
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Unsupported kernel in BottomHatRegion. |
Complexity Level
This filter is available on Advanced Complexity Level.
Filter Group
This filter is member of BottomHatRegion filter group.