pix2chc {Momocs}R Documentation

Convert (x; y) coordinates to chaincoded coordinates

Description

Useful to convert (x; y) coordinates to chain-coded coordinates.

Usage

pix2chc(coo)

chc2pix(chc)

Arguments

coo

(x; y) coordinates passed as a matrix

chc

chain coordinates

Value

a matrix or a numeric

Note

Note this function will be deprecated from Momocs when Momacs and Momit will be fully operationnal.

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

chc2pix

Other import functions: import_Conte(), import_StereoMorph_curve1(), import_jpg1(), import_jpg(), import_tps(), import_txt()

Other import functions: import_Conte(), import_StereoMorph_curve1(), import_jpg1(), import_jpg(), import_tps(), import_txt()

Examples

pix2chc(shapes[1]) %T>% print %>% # from pix to chc
chc2pix()                         # and back

[Package Momocs version 1.4.1 Index]