Ask Your Question

gussurya_w's profile - activity

2017-07-14 19:12:17 -0500 received badge  Popular Question (source)
2014-02-08 01:58:32 -0500 received badge  Student (source)
2014-02-07 18:41:38 -0500 asked a question Save ORB features to database

I am new on opencv. I look the code of using ORB features in this link http://answers.opencv.org/question/6260/orb-features/ Code:

bmp=BitmapFactory.decodeResource(getResources(),R.drawable.t1);
Utils.bitmapToMat(bmp, mat);
FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(mat, keypoints);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(mat, keypoints, features);

and i use this code to show the value of features:

Log.i(TAG, "FEATURE = "+ features.get(0,0)[0]);

I want to save the features value to database. How many features value that must i save?

2014-02-04 19:18:22 -0500 received badge  Supporter (source)
2014-02-04 19:18:12 -0500 answered a question ORB features

hello @ignas i use your coding above and i got the same value of feature for same image. I'm new on opencv, can u tell me how much array of feature value can save. I use the firt array of variable "features" to show (features.get(0,0)). If i want to save that value to database, how much array that must i save?

2013-12-28 19:34:39 -0500 asked a question 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