fixed gpu performance tests

This commit is contained in:
Vladislav Vinogradov
2011-11-15 07:03:44 +00:00
parent 464b8a570c
commit 1f3f4599cc
7 changed files with 90 additions and 212 deletions

View File

@@ -11,12 +11,10 @@ PERF_TEST_P(DevInfo, HOGDescriptor, testing::ValuesIn(devices()))
GpuMat img(img_host);
vector<Rect> found_locations;
declare.time(0.5).iterations(100);
gpu::HOGDescriptor hog;
hog.setSVMDetector(gpu::HOGDescriptor::getDefaultPeopleDetector());
SIMPLE_TEST_CYCLE()
TEST_CYCLE(100)
{
hog.detectMultiScale(img, found_locations);
}