Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Features » PointsBoundingRectangle
Computes the smallest rectangle containing an array of points.
Name | Type | Description | |
---|---|---|---|
![]() |
inPoints | Point2DArray | Input array of points |
![]() |
inBoundingRectangleFeature | BoundingRectangleFeature | Determines what kind of bounding rectangle will be computed |
![]() |
inReferenceAngle | Real | The middle angle of the valid range of the output rectangle's angle |
![]() |
inRectangleOrientation | RectangleOrientation | Orientation of the output rectangle |
![]() |
outBoundingRectangle | Rectangle2D | Smallest bounding rectangle of the input points |
![]() |
outCenter | Point2D | Center of the bounding rectangle |
![]() |
outLongSide | Real | Length of the bounding rectangle long side |
![]() |
outShortSide | Real | Length of the bounding rectangle short side |
Description
The filter computes a rectangle with the smallest possible selected feature that contains all given points. The angle of the resulting rectangle is then normalized as in the NormalizeRectangleOrientation filter.
Examples
![]() |
The resulting outBoundingRectangle drawn with the input points and with inRectangleOrientation set on Horizontal
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
Error type | Description |
---|---|
DomainError | No points on input in PointsBoundingRectangle. |
DomainError | Incorrect BoundingRectangleFeature in PointsBoundingRectangle. |
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filters is member of PointsBoundingRectangle filter group.