Start » Filter Reference » Region » Region Morphology » TopHatRegion

TopHatRegion


Module: FoundationBasic

Performs a morphological white top hat operation on a region using a predefined kernel.

Name Type Range Description
Input value
inRegion Region Input region
Input value
inKernel KernelShape Kernel shape (predefined)
Input value
inRadiusX Integer 0 - Nearly half of the kernel's width (2*R+1)
Input value
inRadiusY Integer* 0 - Nearly half of the kernel's height (2*R+1), or same as inRadiusX
Output value
outRegion 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

Top Hat used to remove bigger parts of region. Used parameters inKernel=Ellipse and inRadiusX=5. 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 Unsupported kernel in TopHatRegion.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of TopHatRegion filter group.