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:
parent
8c39385311
commit
817f861b63
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user