1 | initial version |
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 filteredMatches12, 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
2 | No.2 Revision |
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 filteredMatches12, 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