Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Basics » SkipEmptyRegion
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
If the input region contains at least one pixel, then it is copied to the output; otherwise Nil is returned.
Applications: Secures against domain errors caused by empty regions, e.g. just before the RegionMassCenter filter is to be invoked.
Syntax
C++
C#
void fil::SkipEmptyRegion ( const fil::Region& inRegion, ftl::Conditional<fil::Region>& outNotEmptyRegion, bool& outIsNotEmpty )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
outNotEmptyRegion | Conditional<Region>& | ||
![]() |
outIsNotEmpty | bool& |