J.J. Crisco
Inertia Properties Using Green's Theorem. MATLAB code for calculating centroid, volume and inertia matrix from a stack of 2-D contours. Reference: Crsico, JJ, McGovern, RD. Journal of Biomechanics 31(1):97-102, 1998.
(link out of date http://isbweb.org/data/Crisco/Crisco.ZIP)