Back to FabImage Library website

You are here: Start » Function Reference » Region » Region Features » RegionEllipticAxes

RegionEllipticAxes


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Computes axes of an ellipse having the same first and second order moments as the given region.

Syntax

C++
C#
 
void fil::RegionEllipticAxes
(
	const fil::Region& inRegion,
	fil::Segment2D& outMajorAxis,
	fil::Segment2D& outMinorAxis
)

Parameters

Name Type Default Description
Input value
inRegion const Region& Input region
Output value
outMajorAxis Segment2D&
Output value
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.

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionEllipticAxes.