fixed some GPU tests failing when compiled for 1.1(no doubles) and run on 1.3(with doubles)
This commit is contained in:
@@ -73,6 +73,10 @@ namespace cv { namespace gpu { namespace split_merge
|
||||
CV_Assert(src);
|
||||
CV_Assert(n > 0);
|
||||
|
||||
bool double_ok = hasGreaterOrEqualVersion(1, 3) &&
|
||||
hasNativeDoubleSupport(getDevice());
|
||||
CV_Assert(src[0].depth() != CV_64F || double_ok);
|
||||
|
||||
int depth = src[0].depth();
|
||||
Size size = src[0].size();
|
||||
|
||||
@@ -112,6 +116,10 @@ namespace cv { namespace gpu { namespace split_merge
|
||||
{
|
||||
CV_Assert(dst);
|
||||
|
||||
bool double_ok = hasGreaterOrEqualVersion(1, 3) &&
|
||||
hasNativeDoubleSupport(getDevice());
|
||||
CV_Assert(src.depth() != CV_64F || double_ok);
|
||||
|
||||
int depth = src.depth();
|
||||
int num_channels = src.channels();
|
||||
Size size = src.size();
|
||||
|
||||
Reference in New Issue
Block a user