Learn R Programming

Momocs (version 0.2-6)

ellpar: Calculate ellipse parameters.

Description

Given a matrix or list of coordinates that defines an ellipse, returns its geometrical parameters, namely: half-length of the major and the minor axis and excentricity.

Usage

ellpar(coo)

Arguments

coo
a matrix or a list of (x; y) coordinates.

Value

  • anumeric. Half length of the major axis.
  • bnumeric. Half length of the minor axis.
  • enumeric. Ellipse excentricity.

Details

The aim of this function is to provide complementary descriptors for ellipses that are more explicit for humans than harmonic coefficients. For that reason they are also used directly instead of harmonic coefficients (See Schmittbuhl et al. 2003). The same study provided an exact approach to directly obtain ellipse parameters from harmonic coefficients but is not yet implemented in Momocs. So far, these parameters are estimated using matrices of coordinates obtained from harmonic coefficients, i.e. by "redrawn" ellipses. Keep in mind that even if error rate is low (moreover if the number of points provided is high), the values returned must not be considered as exact.

References

Schmittbuhl M, Allenbach B, Le Minor J-M, Schaaf A, Minor J-marie L. 2003. Elliptical Descriptors: Some Simplified Morphometric Parameters for the Quantification of Complex Outlines. Mathematical Geology 35: 853-871.

See Also

ellipse.par, the corresponding method for Coe-class objects.

Examples

Run this code
data(bot)

Run the code above in your browser using DataLab