Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Features » RegionBoundingBox
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes the smallest box containing a region.
Syntax
C++
C#
void fil::RegionBoundingBox ( const fil::Region& inRegion, fil::Box& outBoundingBox )
Parameters
Hints
- If the input region is not guaranteed to be non-empty, precede this filter with SkipEmptyRegion.
Examples
![]() |
The resulting outBoundingBox box drawn onto the input region.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region on input in RegionBoundingBox. |
See Also
- RegionBoundingCircle – Computes the smallest circle enclosing a region.
- PathBoundingBox – Computes the smallest box containing a path.