A practical invariant moment calculation method