get good matches from the ORB feature detection algorithm

asked 2013-03-21 04:52:53 -0500

Marwen Z gravatar image

Hi, I want to get good matches from the ORB feature detection algorithm, so i did like that but i don't know haw push good matching in matches JAVA

    MatOfDMatch matches, matches12, matches21;
    matcher.match( descriptors1, descriptors2, matches12 );
    matcher.match( descriptors2, descriptors1, matches21 );
 // iterate matches12
        DMatch forward = matches12[i];  // error 
        DMatch backward = matches21[forward.trainIdx]; 
        if( backward.trainIdx == forward.queryIdx ) 
         matches.push_back( forward );  // error
edit retag flag offensive close merge delete