From 312a58fcec5d8478cf95352e990ab24601c0108a Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Thu, 11 Oct 2012 16:27:23 +0400 Subject: [PATCH] fix performance test --- modules/gpu/perf/perf_objdetect.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/gpu/perf/perf_objdetect.cpp b/modules/gpu/perf/perf_objdetect.cpp index e6efcc2d62..ced8ee17dc 100644 --- a/modules/gpu/perf/perf_objdetect.cpp +++ b/modules/gpu/perf/perf_objdetect.cpp @@ -186,11 +186,14 @@ PERF_TEST_P(SoftCascadeTest, detect, cv::gpu::GpuMat objectBoxes(1, 16384, CV_8UC1), rois(cascade.getRoiSize(), CV_8UC1), trois; rois.setTo(1); cv::gpu::transpose(rois, trois); - cascade.detectMultiScale(colored, trois, objectBoxes); + + cv::gpu::GpuMat curr = objectBoxes; + cascade.detectMultiScale(colored, trois, curr); TEST_CYCLE() { - cascade.detectMultiScale(colored, trois, objectBoxes); + curr = objectBoxes; + cascade.detectMultiScale(colored, trois, curr); } } else