@@ -43,6 +43,9 @@ typedef perf::TestBaseWithParam<Size_MatType_BorderType3x3_t> Size_MatType_Borde
43
43
typedef std::tr1::tuple<Size, MatType, BorderType> Size_MatType_BorderType_t;
44
44
typedef perf::TestBaseWithParam<Size_MatType_BorderType_t> Size_MatType_BorderType;
45
45
46
+ typedef std::tr1::tuple<Size, int , BorderType3x3> Size_ksize_BorderType_t;
47
+ typedef perf::TestBaseWithParam<Size_ksize_BorderType_t> Size_ksize_BorderType;
48
+
46
49
PERF_TEST_P (Size_MatType_BorderType3x3, gaussianBlur3x3,
47
50
testing::Combine (
48
51
testing::Values (szODD, szQVGA, szVGA, sz720p),
@@ -134,6 +137,28 @@ PERF_TEST_P(Size_MatType_BorderType3x3, box3x3,
134
137
SANITY_CHECK (dst, 1e-6 , ERROR_RELATIVE);
135
138
}
136
139
140
+ PERF_TEST_P (Size_ksize_BorderType, box_CV8U_CV16U,
141
+ testing::Combine (
142
+ testing::Values (szODD, szQVGA, szVGA, sz720p),
143
+ testing::Values(3 , 5 , 15 ),
144
+ BorderType3x3::all()
145
+ )
146
+ )
147
+ {
148
+ Size size = get<0 >(GetParam ());
149
+ int ksize = get<1 >(GetParam ());
150
+ BorderType3x3 btype = get<2 >(GetParam ());
151
+
152
+ Mat src (size, CV_8UC1);
153
+ Mat dst (size, CV_16UC1);
154
+
155
+ declare.in (src, WARMUP_RNG).out (dst);
156
+
157
+ TEST_CYCLE () boxFilter (src, dst, CV_16UC1, Size (ksize, ksize), Point (-1 ,-1 ), false , btype);
158
+
159
+ SANITY_CHECK (dst, 1e-6 , ERROR_RELATIVE);
160
+ }
161
+
137
162
PERF_TEST_P (Size_MatType_BorderType3x3, box3x3_inplace,
138
163
testing::Combine (
139
164
testing::Values (szODD, szQVGA, szVGA, sz720p),
0 commit comments