Learn R Programming

Momocs (version 1.4.1)

pix2chc: Convert (x; y) coordinates to chaincoded coordinates

Description

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

Usage

pix2chc(coo)

chc2pix(chc)

Value

a matrix or a numeric

Arguments

coo

(x; y) coordinates passed as a matrix

chc

chain 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

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

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

Run the code above in your browser using DataLab