Ask Your Question
0

Algorithm used in Descriptor Matcher trainer in OpenCV

asked 2014-01-29 12:20:07 -0600

motiur gravatar image

The code snippet below shows the basics of training a descriptor matcher used in object recognition.

detector = cv.FeatureDetector('ORB');
extractor = cv.DescriptorExtractor('ORB');
matcher = cv.DescriptorMatcher('BruteForce-Hamming')

for(i=1 to N)
{
   detector(i) = detector.detect(image(i));
   descriptor(i) = extractor.compute(image(i),detector(i));
   matcher.add(descriptor(i));

}
matcher.train();

The code is not syntactically correct, however I want to know how the train() function of matcher works here.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-01-29 22:06:54 -0600

conceptgame gravatar image

The implementation of train method for Brute Force Matcher is empty. It only makes sense for other matcher where you can train in advance without query descriptors.

edit flag offensive delete link more

Comments

So what is happening to other matchers.

motiur gravatar imagemotiur ( 2014-01-31 05:48:50 -0600 )edit

Question Tools

Stats

Asked: 2014-01-29 12:20:07 -0600

Seen: 190 times

Last updated: Jan 29 '14