Elliptical Fourier Descriptor (EFD) implementation in Rust. This crate implements EFD and its related functions.
Reference: Kuhl, FP and Giardina, CR (1982). Elliptic Fourier features of a closed contour. Computer graphics and image processing, 18(3), 236-258.
This is an unofficial implementation.
bibtex
@article{kuhl1982elliptic,
title={Elliptic Fourier features of a closed contour},
author={Kuhl, Frank P and Giardina, Charles R},
journal={Computer graphics and image processing},
volume={18},
number={3},
pages={236--258},
year={1982},
publisher={Elsevier}
}
Example code:
```rust use efd::Efd2;
let curve = vec![[0.; 2], [1.; 2], [2.; 2], [3.; 2]]; let newcurve = Efd2::fromcurve(&curve, None).generate(20); ```