Learn R Programming

Momocs (version 1.1.6)

chc2pix: Converts chain-coded coordinates to (x; y) coordinates

Description

May be useful to convert chain-coded coordinates to (x; y) coordinates. The first point is set at the origin. chc2Out does the job for an entire dataset produced by Shape/ChainCoder, etc.

Usage

chc2pix(chc)

Arguments

chc
a vector of chain-coded coordinates

References

Kuhl, F. P., & Giardina, C. R. (1982). Elliptic Fourier features of a closed contour. Computer Graphics and Image Processing, 18(3), 236-258.

See Also

pix2chc, chc2Out Other babel functions: bind_db, chc2Out, import_StereoMorph_curve1, import_jpg, import_tps, nef2Coe, ntsrow2Coo, pix2chc, tie_jpg_txt, tps2coo

Examples

Run this code
data(shapes)
x <- pix2chc(shapes[1])
coo_plot(chc2pix(x))

Run the code above in your browser using DataLab