Home
last modified time | relevance | path

Searched refs:dst_gold (Results 1 – 25 of 32) sorted by relevance

12

/external/opencv3/modules/cudev/test/
Dtest_reduction.cu63 Scalar dst_gold = cv::sum(src); in TEST() local
65 ASSERT_FLOAT_EQ(static_cast<float>(dst_gold[0]), res); in TEST()
81 Scalar dst_gold = cv::norm(src1, src2, NORM_L1); in TEST() local
83 ASSERT_FLOAT_EQ(static_cast<float>(dst_gold[0]), res); in TEST()
165 Mat dst_gold; in TEST() local
166 cv::reduce(src, dst_gold, 0, REDUCE_SUM, CV_32S); in TEST()
168 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in TEST()
181 Mat dst_gold; in TEST() local
182 cv::reduce(src, dst_gold, 0, REDUCE_AVG, CV_32F); in TEST()
184 EXPECT_MAT_NEAR(dst_gold, dst, 1e-4); in TEST()
[all …]
Dtest_arithm_op.cu72 Mat dst_gold; in test_gpumat() local
73 src.convertTo(dst_gold, src.depth(), -1); in test_gpumat()
75 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat()
90 Mat dst_gold; in test_globptr() local
91 src.convertTo(dst_gold, src.depth(), -1); in test_globptr()
93 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_globptr()
108 Mat dst_gold; in test_texptr() local
109 src.convertTo(dst_gold, src.depth(), -1); in test_texptr()
111 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_texptr()
126 Mat dst_gold; in test_expr() local
[all …]
Dtest_integral.cu61 Mat dst_gold; in TEST() local
62 cv::integral(src, dst_gold); in TEST()
64 dst_gold = dst_gold(Rect(1, 1, size.width, size.height)); in TEST()
66 ASSERT_MAT_NEAR(dst_gold, dst, 0.0); in TEST()
79 Mat dst_gold; in TEST() local
80 cv::integral(src, dst_gold, CV_32F); in TEST()
82 dst_gold = dst_gold(Rect(1, 1, size.width, size.height)); in TEST()
84 ASSERT_PRED_FORMAT2(cvtest::MatComparator(1e-5, 0), dst_gold, Mat(dst)); in TEST()
97 Mat dst_gold; in TEST() local
98 cv::integral(src, dst_gold); in TEST()
[all …]
Dtest_cmp_op.cu72 Mat dst_gold; in test_gpumat_gpumat() local
73 cv::compare(src1, src2, dst_gold, CMP_LT); in test_gpumat_gpumat()
75 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat_gpumat()
105 Mat dst_gold; in test_gpumat_gpumat() local
106 cv::min(src1, src2, dst_gold); in test_gpumat_gpumat()
108 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat_gpumat()
139 Mat dst_gold; in test_gpumat() local
140 cv::threshold(src, dst_gold, 128, 0, THRESH_BINARY); in test_gpumat()
142 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat()
Dtest_pyramids.cu61 Mat dst_gold; in TEST() local
62 cv::pyrDown(src, dst_gold); in TEST()
64 ASSERT_MAT_NEAR(dst_gold, dst, 1.0); in TEST()
77 Mat dst_gold; in TEST() local
78 cv::pyrDown(src, dst_gold); in TEST()
80 ASSERT_MAT_NEAR(dst_gold, dst, 1e-4); in TEST()
Dtranspose.cu61 Mat dst_gold; in TEST() local
62 cv::transpose(src, dst_gold); in TEST()
64 ASSERT_MAT_NEAR(dst_gold, dst, 0.0); in TEST()
77 Mat dst_gold; in TEST() local
78 cv::transpose(src, dst_gold); in TEST()
80 ASSERT_MAT_NEAR(dst_gold, dst, 0.0); in TEST()
Dtest_arithm_func.cu69 Mat dst_gold; in test_gpumat() local
70 cv::sqrt(src, dst_gold); in test_gpumat()
72 EXPECT_MAT_NEAR(dst_gold, dst, 1e-4); in test_gpumat()
87 Mat dst_gold; in test_expr() local
88 cv::multiply(src1, src2, dst_gold); in test_expr()
89 cv::sqrt(dst_gold, dst_gold); in test_expr()
91 EXPECT_MAT_NEAR(dst_gold, dst, 1e-4); in test_expr()
Dtest_bitwize_op.cu71 Mat dst_gold; in test_gpumat() local
72 cv::bitwise_not(src, dst_gold); in test_gpumat()
74 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat()
104 Mat dst_gold; in test_gpumat_gpumat() local
105 cv::bitwise_and(src1, src2, dst_gold); in test_gpumat_gpumat()
107 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat_gpumat()
Dtest_warp.cu108 Mat dst_gold; in test_remap() local
109 cv::remap(src, dst_gold, mapx, mapy, INTER_NEAREST, BORDER_REPLICATE); in test_remap()
111 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_remap()
232 Mat dst_gold; in TEST() local
233 cv::warpAffine(src, dst_gold, M, size, INTER_NEAREST | WARP_INVERSE_MAP); in TEST()
235 EXPECT_MAT_SIMILAR(dst_gold, dst, 1e-3); in TEST()
252 Mat dst_gold; in TEST() local
253 cv::warpPerspective(src, dst_gold, M, size, INTER_NEAREST | WARP_INVERSE_MAP); in TEST()
255 EXPECT_MAT_SIMILAR(dst_gold, dst, 1e-3); in TEST()
Dtest_split_merge.cu75 Mat dst_gold; in test_c2() local
77 cv::merge(srcs, 2, dst_gold); in test_c2()
79 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_c2()
99 Mat dst_gold; in test_c3() local
101 cv::merge(srcs, 3, dst_gold); in test_c3()
103 ASSERT_MAT_NEAR(dst_gold, dst, 0.0); in test_c3()
Dtest_cvt.cu71 Mat dst_gold; in test_gpumat() local
72 src.convertTo(dst_gold, src.depth(), 2, -10); in test_gpumat()
74 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat()
Dtest_lut.cu70 Mat dst_gold; in test_gpumat() local
71 cv::LUT(src, tbl, dst_gold); in test_gpumat()
73 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in test_gpumat()
/external/opencv3/modules/cudaimgproc/test/
Dtest_color.cpp81 cv::Mat dst_gold; in CUDA_TEST_P() local
82 cv::cvtColor(src, dst_gold, cv::COLOR_BGR2RGB); in CUDA_TEST_P()
84 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
94 cv::Mat dst_gold; in CUDA_TEST_P() local
95 cv::cvtColor(src, dst_gold, cv::COLOR_BGR2RGBA); in CUDA_TEST_P()
97 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
107 cv::Mat dst_gold; in CUDA_TEST_P() local
108 cv::cvtColor(src, dst_gold, cv::COLOR_BGR2BGRA); in CUDA_TEST_P()
110 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
121 cv::Mat dst_gold; in CUDA_TEST_P() local
[all …]
Dtest_corners.cpp90 cv::Mat dst_gold; in CUDA_TEST_P() local
91 cv::cornerHarris(src, dst_gold, blockSize, apertureSize, k, borderType); in CUDA_TEST_P()
93 EXPECT_MAT_NEAR(dst_gold, dst, 0.02); in CUDA_TEST_P()
136 cv::Mat dst_gold; in CUDA_TEST_P() local
137 cv::cornerMinEigenVal(src, dst_gold, blockSize, apertureSize, borderType); in CUDA_TEST_P()
139 EXPECT_MAT_NEAR(dst_gold, dst, 0.02); in CUDA_TEST_P()
Dtest_match_template.cpp90 cv::Mat dst_gold; in CUDA_TEST_P() local
91 cv::matchTemplate(image, templ, dst_gold, method); in CUDA_TEST_P()
94 ASSERT_EQ(dst_gold.size(), h_dst.size()); in CUDA_TEST_P()
95 ASSERT_EQ(dst_gold.type(), h_dst.type()); in CUDA_TEST_P()
100 float gold_val = dst_gold.at<float>(y, x); in CUDA_TEST_P()
101 float actual_val = dst_gold.at<float>(y, x); in CUDA_TEST_P()
149 cv::Mat dst_gold; in CUDA_TEST_P() local
150 cv::matchTemplate(image, templ, dst_gold, method); in CUDA_TEST_P()
153 ASSERT_EQ(dst_gold.size(), h_dst.size()); in CUDA_TEST_P()
154 ASSERT_EQ(dst_gold.type(), h_dst.type()); in CUDA_TEST_P()
[all …]
Dtest_histogram.cpp161 cv::Mat dst_gold; in CUDA_TEST_P() local
162 cv::equalizeHist(src, dst_gold); in CUDA_TEST_P()
164 EXPECT_MAT_NEAR(dst_gold, dst, 3.0); in CUDA_TEST_P()
204 cv::Mat dst_gold; in CUDA_TEST_P() local
205 clahe_gold->apply(src, dst_gold); in CUDA_TEST_P()
207 ASSERT_MAT_NEAR(dst_gold, dst, 1.0); in CUDA_TEST_P()
/external/opencv3/modules/cudaarithm/test/
Dtest_element_operations.cpp101 cv::Mat dst_gold(size, dtype, cv::Scalar::all(0)); in CUDA_TEST_P() local
102 cv::add(mat1, mat2, dst_gold, cv::noArray(), depth.second); in CUDA_TEST_P()
104 … EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0); in CUDA_TEST_P()
163 cv::Mat dst_gold(size, dtype, cv::Scalar::all(0)); in CUDA_TEST_P() local
164 cv::add(mat1, mat2, dst_gold, mask, depth.second); in CUDA_TEST_P()
166 … EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 0.0); in CUDA_TEST_P()
220 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0)); in CUDA_TEST_P() local
221 cv::add(mat, val, dst_gold, cv::noArray(), depth.second); in CUDA_TEST_P()
223 … EXPECT_MAT_NEAR(dst_gold, dst, depth.first >= CV_32F || depth.second >= CV_32F ? 1e-4 : 1.0); in CUDA_TEST_P()
251 cv::Mat dst_gold(size, depth.second, cv::Scalar::all(0)); in CUDA_TEST_P() local
[all …]
Dtest_core.cpp100 cv::Mat dst_gold; in CUDA_TEST_P() local
101 cv::merge(src, dst_gold); in CUDA_TEST_P()
103 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
162 std::vector<cv::Mat> dst_gold; in CUDA_TEST_P() local
163 cv::split(src, dst_gold); in CUDA_TEST_P()
165 ASSERT_EQ(dst_gold.size(), dst.size()); in CUDA_TEST_P()
167 for (size_t i = 0; i < dst_gold.size(); ++i) in CUDA_TEST_P()
169 EXPECT_MAT_NEAR(dst_gold[i], dst[i], 0.0); in CUDA_TEST_P()
223 cv::Mat dst_gold; in CUDA_TEST_P() local
224 cv::transpose(src, dst_gold); in CUDA_TEST_P()
[all …]
Dtest_stream.cpp83 cv::Mat dst_gold = cv::Mat::zeros(src.size(), src.type()); in checkMemSet() local
85 ASSERT_MAT_NEAR(dst_gold, dst, 0); in checkMemSet()
112 cv::Mat dst_gold; in checkConvert() local
113 src.createMatHeader().convertTo(dst_gold, CV_32S); in checkConvert()
115 ASSERT_MAT_NEAR(dst_gold, dst, 0); in checkConvert()
145 cv::Mat dst_gold; in CUDA_TEST_P() local
146 src.createMatHeader().convertTo(dst_gold, CV_32S); in CUDA_TEST_P()
148 ASSERT_MAT_NEAR(dst_gold, h_dst, 0); in CUDA_TEST_P()
Dtest_gpumat.cpp225 cv::Mat dst_gold = cv::Mat::zeros(size, type); in CUDA_TEST_P() local
226 src.copyTo(dst_gold, mask); in CUDA_TEST_P()
228 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
284 cv::Mat dst_gold; in CUDA_TEST_P() local
285 src.convertTo(dst_gold, depth2); in CUDA_TEST_P()
287 EXPECT_MAT_NEAR(dst_gold, dst, depth2 < CV_32F ? 1.0 : 1e-4); in CUDA_TEST_P()
316 cv::Mat dst_gold; in CUDA_TEST_P() local
317 src.convertTo(dst_gold, depth2, a, b); in CUDA_TEST_P()
319 EXPECT_MAT_NEAR(dst_gold, dst, depth2 < CV_32F ? 1.0 : 1e-4); in CUDA_TEST_P()
Dtest_reductions.cpp870 cv::Mat dst_gold; in CUDA_TEST_P() local
871 cv::reduce(src, dst_gold, 0, reduceOp, dst_depth); in CUDA_TEST_P()
873 EXPECT_MAT_NEAR(dst_gold, dst, dst_depth < CV_32F ? 0.0 : 0.02); in CUDA_TEST_P()
883 cv::Mat dst_gold; in CUDA_TEST_P() local
884 cv::reduce(src, dst_gold, 1, reduceOp, dst_depth); in CUDA_TEST_P()
885 dst_gold.cols = dst_gold.rows; in CUDA_TEST_P()
886 dst_gold.rows = 1; in CUDA_TEST_P()
887 dst_gold.step = dst_gold.cols * dst_gold.elemSize(); in CUDA_TEST_P()
889 EXPECT_MAT_NEAR(dst_gold, dst, dst_depth < CV_32F ? 0.0 : 0.02); in CUDA_TEST_P()
941 cv::Mat dst_gold; in CUDA_TEST_P() local
[all …]
/external/opencv3/modules/cudafilters/test/
Dtest_filters.cpp106 cv::Mat dst_gold; in CUDA_TEST_P() local
107 cv::blur(src, dst_gold, ksize, anchor, borderType); in CUDA_TEST_P()
109 EXPECT_MAT_NEAR(dst_gold, dst, 1.0); in CUDA_TEST_P()
158 cv::Mat dst_gold; in CUDA_TEST_P() local
159 cv::filter2D(src, dst_gold, -1, kernel, anchor, 0, borderType); in CUDA_TEST_P()
161 EXPECT_MAT_NEAR(dst_gold, dst, CV_MAT_DEPTH(type) == CV_32F ? 1e-1 : 1.0); in CUDA_TEST_P()
205 cv::Mat dst_gold; in CUDA_TEST_P() local
206 cv::Laplacian(src, dst_gold, -1, ksize.width); in CUDA_TEST_P()
208 EXPECT_MAT_NEAR(dst_gold, dst, src.depth() < CV_32F ? 0.0 : 1e-3); in CUDA_TEST_P()
262 cv::Mat dst_gold; in CUDA_TEST_P() local
[all …]
/external/opencv3/modules/cudawarping/test/
Dtest_pyramids.cpp77 cv::Mat dst_gold; in CUDA_TEST_P() local
78 cv::pyrDown(src, dst_gold); in CUDA_TEST_P()
80 EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-4 : 1.0); in CUDA_TEST_P()
117 cv::Mat dst_gold; in CUDA_TEST_P() local
118 cv::pyrUp(src, dst_gold); in CUDA_TEST_P()
120 EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-4 : 1.0); in CUDA_TEST_P()
Dtest_warp_affine.cpp98 cv::Mat dst_gold; in CUDA_TEST_P() local
99 cv::warpAffine(src, dst_gold, M, size, flags, borderMode); in CUDA_TEST_P()
101 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
219 cv::Mat dst_gold; in CUDA_TEST_P() local
220 warpAffineGold(src, M, inverse, size, dst_gold, interpolation, borderType, val); in CUDA_TEST_P()
222 EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-1 : 1.0); in CUDA_TEST_P()
268 cv::Mat dst_gold; in CUDA_TEST_P() local
269 …warpAffineGold(src, M, inverse, src.size(), dst_gold, interpolation, cv::BORDER_CONSTANT, cv::Scal… in CUDA_TEST_P()
271 EXPECT_MAT_SIMILAR(dst_gold, dst, 2e-2); in CUDA_TEST_P()
Dtest_warp_perspective.cpp99 cv::Mat dst_gold; in CUDA_TEST_P() local
100 cv::warpPerspective(src, dst_gold, M, size, flags, borderMode); in CUDA_TEST_P()
102 EXPECT_MAT_NEAR(dst_gold, dst, 0.0); in CUDA_TEST_P()
222 cv::Mat dst_gold; in CUDA_TEST_P() local
223 warpPerspectiveGold(src, M, inverse, size, dst_gold, interpolation, borderType, val); in CUDA_TEST_P()
225 EXPECT_MAT_NEAR(dst_gold, dst, src.depth() == CV_32F ? 1e-1 : 1.0); in CUDA_TEST_P()
271 cv::Mat dst_gold; in CUDA_TEST_P() local
272 …warpPerspectiveGold(src, M, inverse, src.size(), dst_gold, interpolation, cv::BORDER_CONSTANT, cv:… in CUDA_TEST_P()
274 EXPECT_MAT_SIMILAR(dst_gold, dst, 2e-2); in CUDA_TEST_P()

12