Lines Matching full:cols

201     void testC2C(const std::string& hint, int cols, int rows, int flags, bool inplace)  in testC2C()  argument
205 cv::Mat a = randomMat(cv::Size(cols, rows), CV_32FC2, 0.0, 10.0); in testC2C()
215 … d_b = cv::cuda::GpuMat(a.rows, a.cols, CV_32FC2, d_b_data.ptr(), a.cols * d_b_data.elemSize()); in testC2C()
217 cv::cuda::dft(loadMat(a), d_b, cv::Size(cols, rows), flags); in testC2C()
222 EXPECT_MAT_NEAR(b_gold, cv::Mat(d_b), rows * cols * 1e-4); in testC2C()
228 int cols = randomInt(2, 100); in CUDA_TEST_P() local
235 testC2C("no flags", cols, rows, 0, inplace); in CUDA_TEST_P()
236 testC2C("no flags 0 1", cols, rows + 1, 0, inplace); in CUDA_TEST_P()
237 testC2C("no flags 1 0", cols, rows + 1, 0, inplace); in CUDA_TEST_P()
238 testC2C("no flags 1 1", cols + 1, rows, 0, inplace); in CUDA_TEST_P()
239 testC2C("DFT_INVERSE", cols, rows, cv::DFT_INVERSE, inplace); in CUDA_TEST_P()
240 testC2C("DFT_ROWS", cols, rows, cv::DFT_ROWS, inplace); in CUDA_TEST_P()
242 testC2C("single row", cols, 1, 0, inplace); in CUDA_TEST_P()
244 testC2C("single row inversed", cols, 1, cv::DFT_INVERSE, inplace); in CUDA_TEST_P()
245 testC2C("single row DFT_ROWS", cols, 1, cv::DFT_ROWS, inplace); in CUDA_TEST_P()
253 void testR2CThenC2R(const std::string& hint, int cols, int rows, bool inplace) in testR2CThenC2R() argument
257 cv::Mat a = randomMat(cv::Size(cols, rows), CV_32FC1, 0.0, 10.0); in testR2CThenC2R()
263 if (a.cols == 1) in testR2CThenC2R()
265 d_b_data.create(1, (a.rows / 2 + 1) * a.cols, CV_32FC2); in testR2CThenC2R()
266 …d_b = cv::cuda::GpuMat(a.rows / 2 + 1, a.cols, CV_32FC2, d_b_data.ptr(), a.cols * d_b_data.elemSiz… in testR2CThenC2R()
270 d_b_data.create(1, a.rows * (a.cols / 2 + 1), CV_32FC2); in testR2CThenC2R()
271 …d_b = cv::cuda::GpuMat(a.rows, a.cols / 2 + 1, CV_32FC2, d_b_data.ptr(), (a.cols / 2 + 1) * d_b_da… in testR2CThenC2R()
274 … d_c = cv::cuda::GpuMat(a.rows, a.cols, CV_32F, d_c_data.ptr(), a.cols * d_c_data.elemSize()); in testR2CThenC2R()
277 cv::cuda::dft(loadMat(a), d_b, cv::Size(cols, rows), 0); in testR2CThenC2R()
278 cv::cuda::dft(d_b, d_c, cv::Size(cols, rows), cv::DFT_REAL_OUTPUT | cv::DFT_SCALE); in testR2CThenC2R()
286 EXPECT_MAT_NEAR(a, c, rows * cols * 1e-5); in testR2CThenC2R()
292 int cols = randomInt(2, 100); in CUDA_TEST_P() local
295 testR2CThenC2R("sanity", cols, rows, false); in CUDA_TEST_P()
296 testR2CThenC2R("sanity 0 1", cols, rows + 1, false); in CUDA_TEST_P()
297 testR2CThenC2R("sanity 1 0", cols + 1, rows, false); in CUDA_TEST_P()
298 testR2CThenC2R("sanity 1 1", cols + 1, rows + 1, false); in CUDA_TEST_P()
301 testR2CThenC2R("single row", cols, 1, false); in CUDA_TEST_P()
302 testR2CThenC2R("single row 1", cols + 1, 1, false); in CUDA_TEST_P()
304 testR2CThenC2R("sanity", cols, rows, true); in CUDA_TEST_P()
305 testR2CThenC2R("sanity 0 1", cols, rows + 1, true); in CUDA_TEST_P()
306 testR2CThenC2R("sanity 1 0", cols + 1, rows, true); in CUDA_TEST_P()
307 testR2CThenC2R("sanity 1 1", cols + 1, rows + 1, true); in CUDA_TEST_P()
308 testR2CThenC2R("single row", cols, 1, true); in CUDA_TEST_P()
309 testR2CThenC2R("single row 1", cols + 1, 1, true); in CUDA_TEST_P()
322 C.create(std::abs(A.rows - B.rows) + 1, std::abs(A.cols - B.cols) + 1, A.type()); in convolveDFT()
326 dftSize.width = cv::getOptimalDFTSize(A.cols + B.cols - 1); in convolveDFT()
334 cv::Mat roiA(tempA, cv::Rect(0, 0, A.cols, A.rows)); in convolveDFT()
336 cv::Mat roiB(tempB, cv::Rect(0, 0, B.cols, B.rows)); in convolveDFT()
355 tempA(cv::Rect(0, 0, C.cols, C.rows)).copyTo(C); in convolveDFT()