Code covered by the BSD License  

Highlights from
Elliptic fourier for shape analysis

image thumbnail

Elliptic fourier for shape analysis

by

 

06 Sep 2011 (Updated )

Implementation of elliptic fourier for shape analysis.

calc_traversal_time(ai)
function output = calc_traversal_time(ai)

% Traversal time is defined as accumulated time consumed by every 
% component of the chain code.

    t_ = 0;
       
    for i = 1 : size(ai, 2)
        t_ = t_ + 1 + ((sqrt(2)-1)/2).*(1-(-1).^ai(i));
        t(i) = t_;
    end
    
    output = t';
    
end

Contact us