fixed failure in Tonemap test
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
// */
|
||||
|
||||
#include "precomp.hpp"
|
||||
#include "opencl_kernels.hpp"
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
@@ -3038,7 +3038,7 @@ const char* typeToStr(int t)
|
||||
"?", "?", "?", "?"
|
||||
};
|
||||
int cn = CV_MAT_CN(t);
|
||||
return cn >= 4 ? "?" : tab[CV_MAT_DEPTH(t)*4 + cn-1];
|
||||
return cn > 4 ? "?" : tab[CV_MAT_DEPTH(t)*4 + cn-1];
|
||||
}
|
||||
|
||||
const char* memopTypeToStr(int t)
|
||||
@@ -3055,7 +3055,7 @@ const char* memopTypeToStr(int t)
|
||||
"?", "?", "?", "?"
|
||||
};
|
||||
int cn = CV_MAT_CN(t);
|
||||
return cn >= 4 ? "?" : tab[CV_MAT_DEPTH(t)*4 + cn-1];
|
||||
return cn > 4 ? "?" : tab[CV_MAT_DEPTH(t)*4 + cn-1];
|
||||
}
|
||||
|
||||
const char* convertTypeStr(int sdepth, int ddepth, int cn, char* buf)
|
||||
|
@@ -67,8 +67,6 @@
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
#endif
|
||||
|
||||
#include "opencl_kernels.hpp"
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
||||
|
@@ -41,6 +41,7 @@
|
||||
//M*/
|
||||
|
||||
#include "precomp.hpp"
|
||||
#include "opencl_kernels.hpp"
|
||||
|
||||
///////////////////////////////// UMat implementation ///////////////////////////////
|
||||
|
||||
|
Reference in New Issue
Block a user