Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

example-humoments-visual-studio

click to hide/show revision 2
retagged

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

berak gravatar image

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

example-humoments-visual-studio