Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » PointsBoundingEllipse
PointsBoundingEllipse
| Header: | FIL.h |
|---|---|
| Namespace: | fil |
| Module: | FoundationBasic |
Computes the smallest ellipse containing an array of points if such ellipse exists.
Syntax
C++
C#
void fil::PointsBoundingEllipse ( const ftl::Array<fil::Point2D>& inPoints, fil::Ellipse2D& outBoundingEllipse, ftl::Array<fil::Point2D>& outBoundaryPoints )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | ||
![]() |
outBoundingEllipse | Ellipse2D& | ||
![]() |
outBoundaryPoints | Array<Point2D>& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty array on input in PointsBoundingEllipse. |
| DomainError | Failed to find proper ellipse PointsBoundingEllipse. |


