fixed #46
This commit is contained in:
parent
ca01bf55d4
commit
d99426eb85
@ -337,7 +337,6 @@ public:
|
|||||||
static bool isBruteForceNearestNeighbor();
|
static bool isBruteForceNearestNeighbor();
|
||||||
static cv::flann::IndexParams * createFlannIndexParams();
|
static cv::flann::IndexParams * createFlannIndexParams();
|
||||||
static cvflann::flann_distance_t getFlannDistanceType();
|
static cvflann::flann_distance_t getFlannDistanceType();
|
||||||
static cv::flann::SearchParams getFlannSearchParams();
|
|
||||||
|
|
||||||
static int getHomographyMethod();
|
static int getHomographyMethod();
|
||||||
|
|
||||||
|
|||||||
@ -1401,14 +1401,6 @@ cvflann::flann_distance_t Settings::getFlannDistanceType()
|
|||||||
return distance;
|
return distance;
|
||||||
}
|
}
|
||||||
|
|
||||||
cv::flann::SearchParams Settings::getFlannSearchParams()
|
|
||||||
{
|
|
||||||
return cv::flann::SearchParams(
|
|
||||||
getNearestNeighbor_search_checks(),
|
|
||||||
getNearestNeighbor_search_eps(),
|
|
||||||
getNearestNeighbor_search_sorted());
|
|
||||||
}
|
|
||||||
|
|
||||||
int Settings::getHomographyMethod()
|
int Settings::getHomographyMethod()
|
||||||
{
|
{
|
||||||
int method = cv::RANSAC;
|
int method = cv::RANSAC;
|
||||||
|
|||||||
@ -440,7 +440,11 @@ void Vocabulary::search(const cv::Mat & descriptorsIn, cv::Mat & results, cv::Ma
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
flannIndex_.knnSearch(descriptors, results, dists, k, Settings::getFlannSearchParams());
|
flannIndex_.knnSearch(descriptors, results, dists, k,
|
||||||
|
cv::flann::SearchParams(
|
||||||
|
Settings::getNearestNeighbor_search_checks(),
|
||||||
|
Settings::getNearestNeighbor_search_eps(),
|
||||||
|
Settings::getNearestNeighbor_search_sorted()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if( dists.type() == CV_32S )
|
if( dists.type() == CV_32S )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user