fixed a bug when double is not supported.
This commit is contained in:
parent
b6b190df5c
commit
7469c2eb9d
@ -223,7 +223,7 @@ namespace cv
|
||||
Moments ocl_moments(oclMat& src, bool binary) //for image
|
||||
{
|
||||
CV_Assert(src.oclchannels() == 1);
|
||||
if(src.type() == CV_64FC1 && Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
|
||||
if(src.type() == CV_64FC1 && !Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
|
||||
{
|
||||
CV_Error(CV_StsUnsupportedFormat, "Moments - double is not supported by your GPU!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user