using hu moments opencv function to get the feature value

asked 2013-12-28 19:34:39 -0600

gussurya_w gravatar image

updated 2013-12-29 02:09:25 -0600

berak gravatar image

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

example-humoments-visual-studio

edit retag flag offensive close merge delete

Comments

1

http://docs.opencv.org/java/org/opencv/imgproc/Imgproc.html#HuMoments(org.opencv.imgproc.Moments,%20org.opencv.core.Mat)

berak gravatar imageberak ( 2013-12-29 02:30:02 -0600 )edit