Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Features » RegionEllipticAxes

RegionEllipticAxes
Computes axes of an ellipse having the same first and second order moments as the given region.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RegionEllipticAxes ( const avl::Region& inRegion, avl::Segment2D& outMajorAxis, avl::Segment2D& outMinorAxis )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
outMajorAxis | Segment2D& | ||
![]() |
outMinorAxis | Segment2D& |
Description
The orientations of the resulting axes are always between 0 and 180 degrees.
Hints
- If the input region is not guaranteed to be non-empty, precede this filter with SkipEmptyRegion.
Examples

RegionEllipticAxes performed on a sample region.