File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
core/include/opencv2/core/openvx Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,10 @@ inline bool dimTooBig(int size)
82
82
}
83
83
84
84
// OpenVX calls have essential overhead so it make sense to skip them for small images
85
- template <int kernel_id> inline bool skipSmallImages (int w, int h) { return w*h < 7680 * 4320 ; }
86
- template <> inline bool skipSmallImages<VX_KERNEL_MULTIPLY>(int w, int h) { return w*h < 640 * 480 ; }
87
- template <> inline bool skipSmallImages<VX_KERNEL_COLOR_CONVERT>(int w, int h) { return w*h < 2048 * 1536 ; }
85
+ template <int kernel_id> inline bool skipSmallImages (int w, int h) { return w*h < 7680 * 4320 ; }
86
+ template <> inline bool skipSmallImages<VX_KERNEL_MULTIPLY>(int w, int h) { return w*h < 640 * 480 ; }
87
+ template <> inline bool skipSmallImages<VX_KERNEL_COLOR_CONVERT>(int w, int h) { return w*h < 2048 * 1536 ; }
88
+ template <> inline bool skipSmallImages<VX_KERNEL_INTEGRAL_IMAGE>(int w, int h) { return w*h < 640 * 480 ; }
88
89
89
90
inline void setConstantBorder (ivx::border_t &border, vx_uint8 val)
90
91
{
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ CV_EXPORTS_W ivx::Context& getOpenVXContext();
28
28
template <int kernel_id> inline bool skipSmallImages (int w, int h) { return w*h < 3840 * 2160 ; }
29
29
template <> inline bool skipSmallImages<VX_KERNEL_MINMAXLOC>(int w, int h) { return w*h < 3840 * 2160 ; }
30
30
template <> inline bool skipSmallImages<VX_KERNEL_MEDIAN_3x3>(int w, int h) { return w*h < 1280 * 720 ; }
31
- template <> inline bool skipSmallImages<VX_KERNEL_GAUSSIAN_3x3>(int w, int h) { return w*h < 1280 * 720 ; }
32
- template <> inline bool skipSmallImages<VX_KERNEL_BOX_3x3>(int w, int h) { return w*h < 1920 * 1080 ; }
31
+ template <> inline bool skipSmallImages<VX_KERNEL_GAUSSIAN_3x3>(int w, int h) { return w*h < 320 * 240 ; }
32
+ template <> inline bool skipSmallImages<VX_KERNEL_BOX_3x3>(int w, int h) { return w*h < 640 * 480 ; }
33
33
template <> inline bool skipSmallImages<VX_KERNEL_HISTOGRAM>(int w, int h) { return w*h < 2048 * 1536 ; }
34
- template <> inline bool skipSmallImages<VX_KERNEL_SOBEL_3x3>(int w, int h) { return w*h < 1280 * 720 ; }
35
- template <> inline bool skipSmallImages<VX_KERNEL_CUSTOM_CONVOLUTION>(int w, int h) { return w*h < 1280 * 720 ; }
34
+ template <> inline bool skipSmallImages<VX_KERNEL_SOBEL_3x3>(int w, int h) { return w*h < 320 * 240 ; }
35
+ template <> inline bool skipSmallImages<VX_KERNEL_CUSTOM_CONVOLUTION>(int w, int h) { return w*h < 640 * 480 ; }
36
36
37
37
}}
38
38
Original file line number Diff line number Diff line change @@ -234,8 +234,8 @@ namespace cv
234
234
border = VX_BORDER_CONSTANT;
235
235
break ;
236
236
case BORDER_REPLICATE:
237
- border = VX_BORDER_REPLICATE;
238
- break ;
237
+ // border = VX_BORDER_REPLICATE;
238
+ // break;
239
239
default :
240
240
return false ;
241
241
}
You can’t perform that action at this time.
0 commit comments