From fa818d03b89dfad7fef11825129b5d1e62aac9aa Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Mon, 18 Aug 2014 18:19:51 +0400 Subject: [PATCH] Changed twiddle buffer creation to use OCL buffer pool (if possible) --- modules/core/src/dxt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/dxt.cpp b/modules/core/src/dxt.cpp index 25eda39..c258bb2 100644 --- a/modules/core/src/dxt.cpp +++ b/modules/core/src/dxt.cpp @@ -1832,7 +1832,8 @@ public: n *= radix; } - Mat tw(1, twiddle_size, CV_32FC2); + twiddles.create(1, twiddle_size, CV_32FC2); + Mat tw = twiddles.getMat(ACCESS_WRITE); float* ptr = tw.ptr(); int ptr_index = 0; @@ -1853,7 +1854,6 @@ public: } } } - twiddles = tw.getUMat(ACCESS_READ); buildOptions = format("-D LOCAL_SIZE=%d -D kercn=%d -D RADIX_PROCESS=%s", dft_size, min_radix, radix_processing.c_str()); -- 2.7.4