mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
removed GPU_/CPU_ prefix from gpu's sanity test
This commit is contained in:
parent
12f304ec54
commit
f87ef77269
@ -51,10 +51,6 @@ static void setCurrentThreadAffinityMask(int mask)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CUDA
|
|
||||||
# include <opencv2/core/gpumat.hpp>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
class PerfEnvironment: public ::testing::Environment
|
class PerfEnvironment: public ::testing::Environment
|
||||||
@ -135,7 +131,7 @@ Regression& Regression::addKeypoints(TestBase* test, const std::string& name, co
|
|||||||
|
|
||||||
Regression& Regression::addMatches(TestBase* test, const std::string& name, const std::vector<cv::DMatch>& array, double eps, ERROR_TYPE err)
|
Regression& Regression::addMatches(TestBase* test, const std::string& name, const std::vector<cv::DMatch>& array, double eps, ERROR_TYPE err)
|
||||||
{
|
{
|
||||||
int len = (int)array.size();
|
int len = (int)array.size();
|
||||||
cv::Mat queryIdx(len, 1, CV_32SC1, len ? (void*)&array[0].queryIdx : 0, sizeof(cv::DMatch));
|
cv::Mat queryIdx(len, 1, CV_32SC1, len ? (void*)&array[0].queryIdx : 0, sizeof(cv::DMatch));
|
||||||
cv::Mat trainIdx(len, 1, CV_32SC1, len ? (void*)&array[0].trainIdx : 0, sizeof(cv::DMatch));
|
cv::Mat trainIdx(len, 1, CV_32SC1, len ? (void*)&array[0].trainIdx : 0, sizeof(cv::DMatch));
|
||||||
cv::Mat imgIdx (len, 1, CV_32SC1, len ? (void*)&array[0].imgIdx : 0, sizeof(cv::DMatch));
|
cv::Mat imgIdx (len, 1, CV_32SC1, len ? (void*)&array[0].imgIdx : 0, sizeof(cv::DMatch));
|
||||||
@ -556,13 +552,6 @@ Regression& Regression::operator() (const std::string& name, cv::InputArray arra
|
|||||||
|
|
||||||
std::string nodename = getCurrentTestNodeName();
|
std::string nodename = getCurrentTestNodeName();
|
||||||
|
|
||||||
// This is a hack for compatibility and it should eventually get removed.
|
|
||||||
// gpu's tests don't even have CPU sanity data anymore.
|
|
||||||
if(suiteName == "gpu")
|
|
||||||
{
|
|
||||||
nodename = (PERF_RUN_GPU() ? "GPU_" : "CPU_") + nodename;
|
|
||||||
}
|
|
||||||
|
|
||||||
cv::FileNode n = rootIn[nodename];
|
cv::FileNode n = rootIn[nodename];
|
||||||
if(n.isNone())
|
if(n.isNone())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user