using hu moments opencv function to get the feature value
My project is to get the feature value of leaf image and then save that value on database. But i don't know how to use hu moments function from opencv on android. Can anybody give me the example to use hu moments function from opencv on android??
This is the example that i found of using humoments on visual studio:
cv::Moments mom = cv::moments(contours[0]);
double hu[7];
cv::HuMoments(mom, hu); // now in hu are your 7 Hu-Moments
http://docs.opencv.org/java/org/opencv/imgproc/Imgproc.html#HuMoments(org.opencv.imgproc.Moments,%20org.opencv.core.Mat)