1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Moved size restrictions for OpenVX processed images to corresponding cpp files

This commit is contained in:
Vitaly Tuzov
2017-05-25 19:10:21 +03:00
parent 9dc36a1ece
commit 1d62a025b3
8 changed files with 27 additions and 9 deletions
+3
View File
@@ -2300,6 +2300,9 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*
#endif
#ifdef HAVE_OPENVX
namespace ovx {
template <> inline bool skipSmallImages<VX_KERNEL_MINMAXLOC>(int w, int h) { return w*h < 3840 * 2160; }
}
static bool openvx_minMaxIdx(Mat &src, double* minVal, double* maxVal, int* minIdx, int* maxIdx, Mat &mask)
{
int stype = src.type();