Back to FabImage Studio website

You are here: Start » Filter Reference » Image » Image Thresholding » ThresholdToRegion_Relative_DarkBright

ThresholdToRegion_Relative_DarkBright


Module: FoundationBasic

Thresholds an image using two relative thresholds and produces two regions (Dark and Bright) in a single image pass.

Applications

This filter can replace two instances of ThresholdToRegion_Relative which may slightly improve performance.
Name Type Range Description
Input value inImage Image Input image
Input value inRoi Region* Region of interest
Input value inBaseImage Image Pixels of this image are subtracted from inImage before thresholding
Input value inDarkThreshold Real Maximum relative value of a pixel that is considered DarkRegion
Input value inBrightThreshold Real Minimum relative value of a pixel that is considered BrightRegion
Input value inHysteresis Real 0.0 - Defines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels
Output value outDarkRegion Region Region of pixels equal or lower than inDarkThreshold
Output value outBrightRegion Region Region of pixels equal or greater than inBrightThreshold

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: 1xUINT8, 3xUINT8.

This operation is optimized for NEON technology for pixels of types: 1xUINT8, 3xUINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.

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 Image formats are not the same in ThresholdToRegion_Relative_DarkBright.
DomainError Image sizes are not equal in ThresholdToRegion_Relative_DarkBright.
DomainError Region exceeds an input image in ThresholdToRegion_Relative_DarkBright.

Complexity Level

This filter is available on Expert Complexity Level.

Filter Group

This filter is member of ThresholdToRegion filter group.