Back to FabImage Library website

You are here: Start » Function Reference » Region » Region Morphology » ErodeRegion_Threshold

ErodeRegion_Threshold


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Erodes a region with inThresholdValue pixels of inKernel.

Syntax

C++
C#
 
void fil::ErodeRegion_Threshold
(
	const fil::Region& inRegion,
	const fil::Region& inKernel,
	ftl::Optional<const fil::Location&> inKernelAnchor,
	const int inThresholdValue,
	fil::Region& outRegion
)

Parameters

Name Type Range Default Description
Input value
inRegion const Region& Input region
Input value
inKernel const Region&
Input value
inKernelAnchor Optional<const Location&> NIL
Input value
inThresholdValue const int 0 -
Output value
outRegion Region& Output region

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Empty kernel on input in ErodeRegion_Threshold.