fixed some GPU tests failing when compiled for 1.1(no doubles) and run on 1.3(with doubles)
This commit is contained in:
@@ -58,7 +58,12 @@ struct CV_GpuBitwiseTest: public CvTest
|
||||
void run(int)
|
||||
{
|
||||
int rows, cols;
|
||||
for (int depth = CV_8U; depth <= CV_64F; ++depth)
|
||||
|
||||
bool double_ok = gpu::hasGreaterOrEqualVersion(1, 3) &&
|
||||
gpu::hasNativeDoubleSupport(gpu::getDevice());
|
||||
int depth_end = double_ok ? CV_64F : CV_32F;
|
||||
|
||||
for (int depth = CV_8U; depth <= CV_32F; ++depth)
|
||||
for (int cn = 1; cn <= 4; ++cn)
|
||||
for (int attempt = 0; attempt < 3; ++attempt)
|
||||
{
|
||||
|
Reference in New Issue
Block a user