The Seven Invariant Moments

Calculates the Seven Invariant Moments in terms of centralized Moments
5.6K Downloads
Updated 28 Nov 2011

View License

Two function files that can be applied on an image to calculate the seven invariant moments defined by Hu(1962)in terms of centralized Moments for purpose of shape recognition . The function to be used directly by the user is
feature_vec(A),where A is a 2D matrix representing an image.
Inside this function another function :cent_moment(p,q,A)is called to calculate the normalized central moments
You can use it in separate.But you don't need to do so when using feature_vec(A)
Attached with the two functions is a pdf file containing short mathematical notes about the theory of Invariant Moments.

Cite As

MATLABacademy (2024). The Seven Invariant Moments (https://www.mathworks.com/matlabcentral/fileexchange/33975-the-seven-invariant-moments), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Invariant Moments/

Version Published Release Notes
1.0.0.0