myHuMoments obje(binaryImage,width,height);
double* myMoments = obje.getHuMoments();
obje.logTransform();
If you want more information about Hu Moments, you can use following link
https://www.learnopencv.com/shape-matching-using-hu-moments-c-python/
https://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html
https://www.researchgate.net/publication/224146066_Analysis_of_Hu's_moment_invariants_on_image_scaling_and_rotation
http://www.wseas.us/e-library/conferences/2013/CambridgeUK/AISE/AISE-15.pdf