You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -234,6 +247,8 @@ template int ovx_hal_mul<short>(const short *a, size_t astep, const short *b, si
234
247
235
248
intovx_hal_not(const uchar *a, size_t astep, uchar *c, size_t cstep, int w, int h)
236
249
{
250
+
if (skipSmallImages(w, h, VX_KERNEL_NOT))
251
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
237
252
if (dimTooBig(w) || dimTooBig(h))
238
253
return CV_HAL_ERROR_NOT_IMPLEMENTED;
239
254
refineStep(w, h, VX_DF_IMAGE_U8, astep);
@@ -263,6 +278,8 @@ int ovx_hal_not(const uchar *a, size_t astep, uchar *c, size_t cstep, int w, int
263
278
264
279
intovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn)
265
280
{
281
+
if (skipSmallImages(len, 1, VX_KERNEL_CHANNEL_COMBINE))
282
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
266
283
if (dimTooBig(len))
267
284
return CV_HAL_ERROR_NOT_IMPLEMENTED;
268
285
if (cn != 3 && cn != 4)
@@ -299,6 +316,8 @@ int ovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn)
299
316
300
317
intovx_hal_resize(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, double inv_scale_x, double inv_scale_y, int interpolation)
301
318
{
319
+
if (skipSmallImages(aw, ah, VX_KERNEL_SCALE_IMAGE))
320
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
302
321
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
303
322
return CV_HAL_ERROR_NOT_IMPLEMENTED;
304
323
refineStep(aw, ah, VX_DF_IMAGE_U8, astep);
@@ -350,6 +369,8 @@ int ovx_hal_resize(int atype, const uchar *a, size_t astep, int aw, int ah, ucha
350
369
351
370
intovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, constdouble M[6], int interpolation, int borderType, constdouble borderValue[4])
352
371
{
372
+
if (skipSmallImages(aw, ah, VX_KERNEL_WARP_AFFINE))
373
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
353
374
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
354
375
return CV_HAL_ERROR_NOT_IMPLEMENTED;
355
376
refineStep(aw, ah, VX_DF_IMAGE_U8, astep);
@@ -410,6 +431,8 @@ int ovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah,
410
431
411
432
intovx_hal_warpPerspectve(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, constdouble M[9], int interpolation, int borderType, constdouble borderValue[4])
412
433
{
434
+
if (skipSmallImages(aw, ah, VX_KERNEL_WARP_PERSPECTIVE))
435
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
413
436
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
414
437
return CV_HAL_ERROR_NOT_IMPLEMENTED;
415
438
refineStep(aw, ah, VX_DF_IMAGE_U8, astep);
@@ -558,6 +581,8 @@ int ovx_hal_filterFree(cvhalFilter2D *filter_context)
558
581
559
582
intovx_hal_filter(cvhalFilter2D *filter_context, uchar *a, size_t astep, uchar *b, size_t bstep, int w, int h, int, int, int, int)
560
583
{
584
+
if (skipSmallImages(w, h, VX_KERNEL_CUSTOM_CONVOLUTION))
585
+
return CV_HAL_ERROR_NOT_IMPLEMENTED;
561
586
if (dimTooBig(w) || dimTooBig(h))
562
587
return CV_HAL_ERROR_NOT_IMPLEMENTED;
563
588
try
@@ -782,6 +807,8 @@ int ovx_hal_morphFree(cvhalFilter2D *filter_context)
if (skipSmallImages(w, h, VX_KERNEL_DILATE_3x3))//Actually it make sense to separate checks if implementations of dilation and erosion have different performance gain
0 commit comments