if( src.depth() != CV_8U || src.oclchannels() != 4 )
CV_Error( CV_StsUnsupportedFormat, "Only 8-bit, 4-channel images are supported" );
- // if(!src.clCxt->supportsFeature(Context::CL_DOUBLE))
+ // if(!src.clCxt->supportsFeature(FEATURE_CL_DOUBLE))
// {
// CV_Error( CV_GpuNotSupported, "Selected device doesn't support double, so a deviation exists.\nIf the accuracy is acceptable, the error can be ignored.\n");
// }
args.push_back(make_pair(sizeof(cl_int), (void* )&width));
float alpha = 0.0f, beta = 0.0f;
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
alpha = (float)alpha1;
beta = (float)beta1;
args.push_back(make_pair(sizeof(cl_int), (void* )&width));
float alpha = 0.0f, beta = 0.0f, degree = 0.0f;
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
alpha = (float)alpha1;
beta = (float)beta1;
args.push_back(make_pair(sizeof(cl_int), (void* )&width));
float alpha = 0.0f, beta = 0.0f;
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
alpha = (float)alpha1;
beta = (float)beta1;
#else
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
dst = oclMat(sample_count, sv_total, CV_32FC1);
}
}
#else
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
dst = oclMat(sample_count, sample_count, CV_32FC1);
}
results[i] = (Qfloat) * src.ptr<float>(row_idx, i);
}
#else
- if(!Context::getContext()->supportsFeature(Context::CL_DOUBLE))
+ if(!Context::getContext()->supportsFeature(FEATURE_CL_DOUBLE))
{
for(int i = 0; i < vcount; i++)
{