Back to Aurora Vision Library website
You are here: Start » Function Reference » Region » Region Morphology » BottomHatRegion_AnyKernel
BottomHatRegion_AnyKernel
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Performs a morphological black top hat (bottom hat) operation on a region using an arbitrary kernel.
Syntax
C++
C#
void avl::BottomHatRegion_AnyKernel ( const avl::Region& inRegion, const avl::Region& inKernel, avl::Region& outRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inRegion | const Region& | Input region | ||
inKernel | const Region& | Kernel shape (any) | ||
outRegion | Region& | Output region |
Description
Extracts small parts which do not belong to region. Uses user-defined 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 | Empty kernel on input in BottomHatRegion_AnyKernel. |