void GetHu(string image_path)
void GetHu(string image_path) { IplImage *src_image = cvLoadImage(image_path.c_str(),0); CvMoments moments; CvHuMoments hu_moments; cvMoments(src_image, &moments,0); cvGetHuMoments(&moments, &hu_moments); for(int i = 1; i < 8; ++i) { cout<<((double*)&hu_moments)[i]<<"\t"; } }