I am using the Fourier descriptor matlab function found in the book (Digital image processing using ...
compgroups.net