Home | History | Annotate | Download | only in test

Lines Matching refs:depth

56     std::pair<MatDepth, MatDepth> depth;
67 depth = GET_PARAM(2);
73 stype = CV_MAKE_TYPE(depth.first, channels);
74 dtype = CV_MAKE_TYPE(depth.second, channels);
83 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
88 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second);
99 cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, cv::cuda::GpuMat(), depth.second);
102 cv::add(mat1, mat2, dst_gold, cv::noArray(), depth.second);
104 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
119 std::pair<MatDepth, MatDepth> depth;
129 depth = GET_PARAM(2);
134 stype = CV_MAKE_TYPE(depth.first, 1);
135 dtype = CV_MAKE_TYPE(depth.second, 1);
145 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
150 cv::cuda::add(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second);
161 cv::cuda::add(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, loadMat(mask, useRoi), depth.second);
164 cv::add(mat1, mat2, dst_gold, mask, depth.second);
166 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
183 std::pair<MatDepth, MatDepth> depth;
190 depth = GET_PARAM(2);
199 cv::Mat mat = randomMat(size, depth.first);
202 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
207 cv::cuda::add(loadMat(mat), val, dst, cv::cuda::GpuMat(), depth.second);
216 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
218 cv::cuda::add(loadMat(mat, useRoi), val, dst, cv::cuda::GpuMat(), depth.second);
220 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
221 cv::add(mat, val, dst_gold, cv::noArray(), depth.second);
223 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
229 cv::Mat mat = randomMat(size, depth.first);
233 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
238 cv::cuda::add(loadMat(mat), val, dst, cv::cuda::GpuMat(), depth.second);
247 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
249 cv::cuda::add(loadMat(mat, useRoi), val, dst, loadMat(mask, useRoi), depth.second);
251 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
252 cv::add(mat, val, dst_gold, mask, depth.second);
254 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
271 std::pair<MatDepth, MatDepth> depth;
278 depth = GET_PARAM(2);
287 cv::Mat mat = randomMat(size, depth.first);
290 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
295 cv::cuda::add(val, loadMat(mat), dst, cv::cuda::GpuMat(), depth.second);
304 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
306 cv::cuda::add(val, loadMat(mat, useRoi), dst, cv::cuda::GpuMat(), depth.second);
308 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
309 cv::add(val, mat, dst_gold, cv::noArray(), depth.second);
311 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
317 cv::Mat mat = randomMat(size, depth.first);
321 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
326 cv::cuda::add(val, loadMat(mat), dst, cv::cuda::GpuMat(), depth.second);
335 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
337 cv::cuda::add(val, loadMat(mat, useRoi), dst, loadMat(mask, useRoi), depth.second);
339 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
340 cv::add(val, mat, dst_gold, mask, depth.second);
342 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
359 std::pair<MatDepth, MatDepth> depth;
370 depth = GET_PARAM(2);
376 stype = CV_MAKE_TYPE(depth.first, channels);
377 dtype = CV_MAKE_TYPE(depth.second, channels);
386 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
391 cv::cuda::subtract(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second);
402 cv::cuda::subtract(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, cv::cuda::GpuMat(), depth.second);
405 cv::subtract(mat1, mat2, dst_gold, cv::noArray(), depth.second);
407 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
422 std::pair<MatDepth, MatDepth> depth;
432 depth = GET_PARAM(2);
437 stype = CV_MAKE_TYPE(depth.first, 1);
438 dtype = CV_MAKE_TYPE(depth.second, 1);
448 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
453 cv::cuda::subtract(loadMat(mat1), loadMat(mat2), dst, cv::cuda::GpuMat(), depth.second);
464 cv::cuda::subtract(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, loadMat(mask, useRoi), depth.second);
467 cv::subtract(mat1, mat2, dst_gold, mask, depth.second);
469 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
486 std::pair<MatDepth, MatDepth> depth;
493 depth = GET_PARAM(2);
502 cv::Mat mat = randomMat(size, depth.first);
505 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
510 cv::cuda::subtract(loadMat(mat), val, dst, cv::cuda::GpuMat(), depth.second);
519 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
521 cv::cuda::subtract(loadMat(mat, useRoi), val, dst, cv::cuda::GpuMat(), depth.second);
523 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
524 cv::subtract(mat, val, dst_gold, cv::noArray(), depth.second);
526 depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
532 cv::Mat mat = randomMat(size, depth.first);
536 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
541 cv::cuda::subtract(loadMat(mat), val, dst, cv::cuda::GpuMat(), depth.second);
550 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
552 cv::cuda::subtract(loadMat(mat, useRoi), val, dst, loadMat(mask, useRoi), depth.second);
554 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
555 cv::subtract(mat, val, dst_gold, mask, depth.second);
557 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
574 std::pair<MatDepth, MatDepth> depth;
581 depth = GET_PARAM(2);
590 cv::Mat mat = randomMat(size, depth.first);
593 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
598 cv::cuda::subtract(val, loadMat(mat), dst, cv::cuda::GpuMat(), depth.second);
607 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
609 cv::cuda::subtract(val, loadMat(mat, useRoi), dst, cv::cuda::GpuMat(), depth.second);
611 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
612 cv::subtract(val, mat, dst_gold, cv::noArray(), depth.second);
614 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
620 cv::Mat mat = randomMat(size, depth.first);
624 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
629 cv::cuda::subtract(val, loadMat(mat), dst, cv::cuda::GpuMat(), depth.second);
638 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
640 cv::cuda::subtract(val, loadMat(mat, useRoi), dst, loadMat(mask, useRoi), depth.second);
642 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0));
643 cv::subtract(val, mat, dst_gold, mask, depth.second);
645 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0);
662 std::pair<MatDepth, MatDepth> depth;
673 depth = GET_PARAM(2);
679 stype = CV_MAKE_TYPE(depth.first, channels);
680 dtype = CV_MAKE_TYPE(depth.second, channels);
689 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
694 cv::cuda::multiply(loadMat(mat1), loadMat(mat2), dst, 1, depth.second);
704 cv::cuda::multiply(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, 1, depth.second);
707 cv::multiply(mat1, mat2, dst_gold, 1, depth.second);
709 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-2 : 0.0);
719 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
724 cv::cuda::multiply(loadMat(mat1), loadMat(mat2), dst, scale, depth.second);
734 cv::cuda::multiply(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, scale, depth.second);
737 cv::multiply(mat1, mat2, dst_gold, scale, depth.second);
855 std::pair<MatDepth, MatDepth> depth;
862 depth = GET_PARAM(2);
871 cv::Mat mat = randomMat(size, depth.first);
874 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
879 cv::cuda::multiply(loadMat(mat), val, dst, 1, depth.second);
888 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
889 cv::cuda::multiply(loadMat(mat, useRoi), val, dst, 1, depth.second);
892 cv::multiply(mat, val, dst_gold, 1, depth.second);
901 cv::Mat mat = randomMat(size, depth.first);
905 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
910 cv::cuda::multiply(loadMat(mat), val, dst, scale, depth.second);
919 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
920 cv::cuda::multiply(loadMat(mat, useRoi), val, dst, scale, depth.second);
923 cv::multiply(mat, val, dst_gold, scale, depth.second);
942 std::pair<MatDepth, MatDepth> depth;
949 depth = GET_PARAM(2);
958 cv::Mat mat = randomMat(size, depth.first);
961 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
966 cv::cuda::multiply(val, loadMat(mat), dst, 1, depth.second);
975 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
976 cv::cuda::multiply(val, loadMat(mat, useRoi), dst, 1, depth.second);
979 cv::multiply(val, mat, dst_gold, 1, depth.second);
988 cv::Mat mat = randomMat(size, depth.first);
992 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
997 cv::cuda::multiply(val, loadMat(mat), dst, scale, depth.second);
1006 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
1007 cv::cuda::multiply(val, loadMat(mat, useRoi), dst, scale, depth.second);
1010 cv::multiply(val, mat, dst_gold, scale, depth.second);
1029 std::pair<MatDepth, MatDepth> depth;
1040 depth = GET_PARAM(2);
1046 stype = CV_MAKE_TYPE(depth.first, channels);
1047 dtype = CV_MAKE_TYPE(depth.second, channels);
1056 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1061 cv::cuda::divide(loadMat(mat1), loadMat(mat2), dst, 1, depth.second);
1071 cv::cuda::divide(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, 1, depth.second);
1074 cv::divide(mat1, mat2, dst_gold, 1, depth.second);
1076 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
1086 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1091 cv::cuda::divide(loadMat(mat1), loadMat(mat2), dst, scale, depth.second);
1101 cv::cuda::divide(loadMat(mat1, useRoi), loadMat(mat2, useRoi), dst, scale, depth.second);
1104 cv::divide(mat1, mat2, dst_gold, scale, depth.second);
1106 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-2 : 1.0);
1222 std::pair<MatDepth, MatDepth> depth;
1229 depth = GET_PARAM(2);
1238 cv::Mat mat = randomMat(size, depth.first);
1241 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1246 cv::cuda::divide(loadMat(mat), val, dst, 1, depth.second);
1255 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
1256 cv::cuda::divide(loadMat(mat, useRoi), val, dst, 1, depth.second);
1259 cv::divide(mat, val, dst_gold, 1, depth.second);
1261 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
1267 cv::Mat mat = randomMat(size, depth.first);
1271 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1276 cv::cuda::divide(loadMat(mat), val, dst, scale, depth.second);
1285 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
1286 cv::cuda::divide(loadMat(mat, useRoi), val, dst, scale, depth.second);
1289 cv::divide(mat, val, dst_gold, scale, depth.second);
1291 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-2 : 1.0);
1308 std::pair<MatDepth, MatDepth> depth;
1315 depth = GET_PARAM(2);
1325 cv::Mat mat = randomMat(size, depth.first, 1.0, 255.0);
1327 if ((depth.first == CV_64F || depth.second == CV_64F) && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1332 cv::cuda::divide(scale, loadMat(mat), dst, 1.0, depth.second);
1341 cv::cuda::GpuMat dst = createMat(size, depth.second, useRoi);
1342 cv::cuda::divide(scale, loadMat(mat, useRoi), dst, 1.0, depth.second);
1345 cv::divide(scale, mat, dst_gold, depth.second);
1347 EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0);
1364 int depth;
1371 depth = GET_PARAM(2);
1380 cv::Mat src1 = randomMat(size, depth);
1381 cv::Mat src2 = randomMat(size, depth);
1383 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1397 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1409 cv::Mat src = randomMat(size, depth);
1412 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1426 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1432 EXPECT_MAT_NEAR(dst_gold, dst, depth <= CV_32F ? 1.0 : 1e-5);
1438 cv::Mat src = randomMat(size, depth);
1441 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1455 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1461 EXPECT_MAT_NEAR(dst_gold, dst, depth <= CV_32F ? 1.0 : 1e-5);
1478 int depth;
1485 depth = GET_PARAM(2);
1494 cv::Mat src = randomMat(size, depth);
1496 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1517 int depth;
1524 depth = GET_PARAM(2);
1533 cv::Mat src = randomMat(size, depth, 0, depth == CV_8U ? 16 : 255);
1535 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1579 funcs[src.depth()](src, dst);
1587 int depth;
1594 depth = GET_PARAM(2);
1603 cv::Mat src = randomMat(size, depth);
1605 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1611 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 1.0 : 1e-5);
1649 funcs[src.depth()](src, dst);
1657 int depth;
1664 depth = GET_PARAM(2);
1673 cv::Mat src = randomMat(size, depth, 1.0, 255.0);
1675 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1681 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 1.0 : 1e-6);
1729 funcs[src.depth()](src, dst);
1737 int depth;
1744 depth = GET_PARAM(2);
1753 cv::Mat src = randomMat(size, depth, 0.0, 10.0);
1755 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1761 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 1.0 : 1e-2);
1780 int depth;
1787 depth = GET_PARAM(2);
1796 cv::Mat src = randomMat(size, depth, 0.0, 10.0);
1799 if (src.depth() < CV_32F)
1802 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1816 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
1822 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 0.0 : 1e-1);
1842 int depth;
1850 depth = GET_PARAM(2);
1860 cv::Mat src1 = randomMat(size, depth);
1861 cv::Mat src2 = randomMat(size, depth);
1863 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
1936 funcs[src.depth()][cmpop](src, sc, dst);
1965 if (src.depth() < CV_32F)
1973 if (src.depth() == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
2082 int depth;
2092 depth = GET_PARAM(2);
2097 src = randomMat(size, CV_MAKE_TYPE(depth, channels));
2172 funcs[src.depth()](src, val, dst);
2180 int depth;
2188 depth = GET_PARAM(2);
2198 int type = CV_MAKE_TYPE(depth, channels);
2252 funcs[src.depth
2260 int depth;
2268 depth = GET_PARAM(2);
2278 int type = CV_MAKE_TYPE(depth, channels);
2305 int depth;
2312 depth = GET_PARAM(2);
2321 cv::Mat src1 = randomMat(size, depth);
2322 cv::Mat src2 = randomMat(size, depth);
2324 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
2338 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
2349 cv::Mat src = randomMat(size, depth);
2352 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
2366 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
2371 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 1.0 : 1e-5);
2388 int depth;
2395 depth = GET_PARAM(2);
2404 cv::Mat src1 = randomMat(size, depth);
2405 cv::Mat src2 = randomMat(size, depth);
2407 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
2421 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
2432 cv::Mat src = randomMat(size, depth);
2435 if (depth == CV_64F && !supportFeature(devInfo, cv::cuda::NATIVE_DOUBLE))
2449 cv::cuda::GpuMat dst = createMat(size, depth, useRoi);
2454 EXPECT_MAT_NEAR(dst_gold, dst, depth < CV_32F ? 1.0 : 1e-5);