Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB); detector.detect(pic, keypoints1); DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB); extractor.compute(pic, keypoints1, featuresofqimg);

i did this for both images...i wanna match these features and i used DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED); matches.knnMatch(featuresofqimg, featuresoftrainimg, matc, 2); but the app stops unexpectedly... pls help me over here...

i initialized matc as follows private List<dmatch> matc1;

and i don know how to initialise it..

pls help me over here

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(pic, keypoints1);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(pic, keypoints1, featuresofqimg);

featuresofqimg);

i I did this for both images...i wanna match these features and i used DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED); matches.knnMatch(featuresofqimg, featuresoftrainimg, matc, 2); but the app stops unexpectedly... pls help me over here...

i I initialized matc as follows follows

private List<dmatch> matc1;

and i don don't know how to initialise it..

pls help me over herehere.

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(pic, keypoints1);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(pic, keypoints1, featuresofqimg);

I did this for both images...i wanna match these features and i used used

       DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED);
        matches.knnMatch(featuresofqimg, featuresoftrainimg,  matc, 2);

but the app stops unexpectedly... pls help me over here...

I initialized matc as follows

private List<dmatch> matc1;

and i don't know how to initialise it..

pls help me over here.

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(pic, keypoints1);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(pic, keypoints1, featuresofqimg);

I did this for both images...i wanna match these features and i used

       DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED);
       matches.knnMatch(featuresofqimg, featuresoftrainimg,  matc, 2);

but the app stops unexpectedly... pls help me over here...

I initialized matc as follows

private List<dmatch> List<DMatch>  matc1;

matc1;

and i don't know how to initialise it..

pls help me over here.

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(pic, keypoints1);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(pic, keypoints1, featuresofqimg);

I did this for both images...i wanna match these features and i used

       DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED);
       matches.knnMatch(featuresofqimg, featuresoftrainimg,  matc, 2);

but the app stops unexpectedly... pls help me over here...

I initialized matc as follows

private List<DMatch> List<MatofDMatch>             matc1;

and i don't know how to initialise it..

pls help me over here.

Object recognition knnmatch

Hello... I extracted features from a train image and query image using

FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(pic, keypoints1);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(pic, keypoints1, featuresofqimg);

I did this for both images...i wanna match these features and i used

       DescriptorMatcher matches =DescriptorMatcher.create(DescriptorMatcher.FLANNBASED);
       matches.knnMatch(featuresofqimg, featuresoftrainimg,  matc, 2);

but the app stops unexpectedly... pls help me over here...

I initialized matc as follows

private List<MatofDMatch>             matc1;

and i don't know how to initialise it..

Also a 2-d variable is required for match...Mat is already 2d ,I wonder why List<matofdmatch> is needed..Its the syntax of the arguments in knnmatch();

pls help me over here.