@@ -215,12 +215,12 @@ int findObjects(std::string fname, std::vector<std::string> names, std::vector<s
215215 continue ;
216216 }// : if
217217
218- ROS_DEBUG (" Model features: %d" , models_keypoints[m].size ());
218+ ROS_INFO (" Model features: %d" , models_keypoints[m].size ());
219219
220220 // Find matches.
221221 matcher.match ( models_descriptors[m], scene_descriptors, matches );
222222
223- ROS_DEBUG (" Matches found: %d" , matches.size ());
223+ ROS_INFO (" Matches found: %d" , matches.size ());
224224
225225 // Filtering.
226226 double max_dist = 0 ;
@@ -233,18 +233,18 @@ int findObjects(std::string fname, std::vector<std::string> names, std::vector<s
233233 if ( dist > max_dist ) max_dist = dist;
234234 }// : for
235235
236- ROS_DEBUG (" Max dist : %f" , max_dist);
237- ROS_DEBUG (" Min dist : %f" , min_dist);
236+ ROS_INFO (" Max dist : %f" , max_dist);
237+ ROS_INFO (" Min dist : %f" , min_dist);
238238
239239 // -- Draw only "good" matches (i.e. whose distance is less than 3*min_dist )
240240 std::vector< DMatch > good_matches;
241241
242242 for ( int i = 0 ; i < matches.size (); i++ ) {
243- if ( matches[i].distance < 3 *min_dist )
243+ if ( matches[i].distance < 10 *min_dist )
244244 good_matches.push_back ( matches[i]);
245245 }// : for
246246
247- ROS_DEBUG (" Good matches: %d" , good_matches.size ());
247+ ROS_INFO (" Good matches: %d" , good_matches.size ());
248248
249249 // Localize the object
250250 std::vector<Point2f> obj;
0 commit comments