From bbdb52f8fd91888c4e119bdf2c32b8f8ff7be9ac Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Tue, 1 Feb 2011 10:51:50 +0000 Subject: [PATCH] replaced source type 32F with 32FC4 in gpu::norm perf. test --- samples/gpu/performance/tests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/gpu/performance/tests.cpp b/samples/gpu/performance/tests.cpp index 6c7b01b..304f606 100644 --- a/samples/gpu/performance/tests.cpp +++ b/samples/gpu/performance/tests.cpp @@ -200,21 +200,21 @@ TEST(norm) Mat src; gpu::GpuMat d_src, d_buf; - for (int size = 1000; size <= 8000; size *= 2) + for (int size = 2000; size <= 4000; size += 1000) { - SUBTEST << "size " << size << ", 32F"; + SUBTEST << "size " << size << ", 32FC4"; - gen(src, size, size, CV_32F, 0, 1); + gen(src, size, size, CV_32FC4, Scalar::all(0), Scalar::all(1)); CPU_ON; - for (int i = 0; i < 10; ++i) + for (int i = 0; i < 5; ++i) norm(src, NORM_L2); CPU_OFF; d_src = src; GPU_ON; - for (int i = 0; i < 10; ++i) + for (int i = 0; i < 5; ++i) gpu::norm(d_src, NORM_L2, d_buf); GPU_OFF; } -- 2.7.4