Added missing FLANN "search" parameters (like number of leafs checked)

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@173 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe 2012-09-06 20:28:12 +00:00
parent 8c39385311
commit 817f861b63
2 changed files with 8 additions and 1 deletions

View File

@ -470,6 +470,9 @@ cvflann::flann_distance_t Settings::getFlannDistanceType()
cv::flann::SearchParams Settings::getFlannSearchParams() cv::flann::SearchParams Settings::getFlannSearchParams()
{ {
return cv::flann::SearchParams(); return cv::flann::SearchParams(
getNearestNeighbor_7search_checks(),
getNearestNeighbor_8search_eps(),
getNearestNeighbor_9search_sorted());
} }

View File

@ -126,6 +126,10 @@ class Settings
PARAMETER(NearestNeighbor, 5minDistanceUsed, bool, false); PARAMETER(NearestNeighbor, 5minDistanceUsed, bool, false);
PARAMETER(NearestNeighbor, 6minDistance, float, 1.6f); PARAMETER(NearestNeighbor, 6minDistance, float, 1.6f);
PARAMETER(NearestNeighbor, 7search_checks, int, 32);
PARAMETER(NearestNeighbor, 8search_eps, float, 0);
PARAMETER(NearestNeighbor, 9search_sorted, bool, true);
PARAMETER(NearestNeighbor, KDTree_trees, int, 4); PARAMETER(NearestNeighbor, KDTree_trees, int, 4);
PARAMETER(NearestNeighbor, Composite_trees, int, 4); PARAMETER(NearestNeighbor, Composite_trees, int, 4);