Learn R Programming

Momocs (version 0.2-03)

Ptolemy: Ptolemaic ellipses and illustration of eFourier

Description

Ptolemy is a method for Coo objects to calculate and display Ptolemaic ellipses which illustrates intuitively the principle behing elliptical Fourier analysis.

Usage

Ptolemy(Coo, id = 1, t = seq(0, 2 * pi, length = 7)[-1], nb.h = 3, 
        nb.pts = 360, palette = col.sari, legend = FALSE)

Arguments

Coo
The Coo object on which to display Ptolemaic ellipses.
id
The id on which to display Ptolemaic ellipses.
t
A vector af angles (in radians) on which to display ellipses.
nb.h
integer. The number of harmonics to display.
nb.pts
integer. The number of points to use to display shapes.
palette
A color palette.
legend
logical. Whether to plot the legend box.

References

This method has been inspired by the figures found in the followings papers. Kuhl FP, Giardina CR. 1982. Elliptic Fourier features of a closed contour. Computer Graphics and Image Processing 18: 236-258. Crampton JS. 1995. Elliptical Fourier shape analysis of fossil bivalves: some practical considerations. Lethaia 28: 179-186.

See Also

efourier. An intuitive explanation of elliptic Fourier analysis can be found in the Details section of the efourier function.

Examples

Run this code
data(bot)
Ptolemy(bot, 1)

Run the code above in your browser using DataLab