Back to Adaptive Vision Studio website

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

CloseRegion_AnyKernel


Module: FoundationBasic

Performs a morphological closing on a region using an arbitrary kernel.

Applications

Filling-in gaps of a particular shape without making the region thicker.
Name Type Description
inRegion Region Input region
inKernel Region Kernel shape (any)
outRegion Region Output region

Description

The operation is a cousin of the CloseRegion filter, yet it uses any proper region selected by user as a structuring element. The center of a kernel is assumed to be at location (width/2,height/2). Refer to the CloseRegion article for further information regarding the morphological closing itself.

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

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of CloseRegion filter group.

See Also

  • CloseRegion – Performs a morphological closing on a region using selected predefined kernel.