powered by
Calculates a shape from Bezier coefficients
bezier_i(B, nb.pts = 120)
a matrix of (x; y) coordinates
a matrix of Bezier vertices, such as those produced by bezier
the number of points to sample along the curve.
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
Other bezier functions: bezier()
bezier()
set.seed(34) x <- coo_sample(efourier_shape(), 5) plot(x, ylim=c(-3, 3), asp=1, type='b', pch=20) b <- bezier(x) bi <- bezier_i(b$B) lines(bi, col='red')
Run the code above in your browser using DataLab