Back to Aurora Vision Studio website

You are here: Start » Filter Reference » Region » Region Morphology » BottomHatRegion_AnyKernel

BottomHatRegion_AnyKernel


Module: FoundationBasic

Performs a morphological black top hat (bottom hat) operation on a region using an arbitrary kernel.

Name Type Description
Input value inRegion Region Input region
Input value inKernel Region Kernel shape (any)
Output value 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

Top Hat used to remove bigger parts of which do not belong to region. Region marked white. Source image on the left and result on the right.

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 Empty kernel on input in BottomHatRegion_AnyKernel.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of BottomHatRegion filter group.