fix data paths in performance test

This commit is contained in:
marina.kolpakova 2012-09-21 19:42:19 +04:00
parent 0691dc554f
commit 1cf7a46f3a

View File

@ -97,12 +97,12 @@ PERF_TEST_P(SoftCascade, detect, Values<pair_string>(make_pair("cv/cascadeandhog
{
if (runOnGpu)
{
cv::Mat cpu = readImage(GetParam().second);
cv::Mat cpu = readImage (GetParam().second);
ASSERT_FALSE(cpu.empty());
cv::gpu::GpuMat colored(cpu);
cv::gpu::SoftCascade cascade;
ASSERT_TRUE(cascade.load(GetParam().first));
ASSERT_TRUE(cascade.load(perf::TestBase::getDataPath(GetParam().first)));
cv::gpu::GpuMat rois, objectBoxes;
cascade.detectMultiScale(colored, rois, objectBoxes);