Commit a60811f6 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed surf type conversions

parent 3bd8f27f
......@@ -204,7 +204,7 @@ bool SURF_OCL::setUpRight(UMat &keypoints)
if( nFeatures == 0 )
return true;
size_t globalThreads[3] = {nFeatures, 1};
size_t globalThreads[3] = {(size_t)nFeatures, 1};
ocl::Kernel kerUpRight("SURF_setUpRight", ocl::xfeatures2d::surf_oclsrc, kerOpts);
return kerUpRight.args(ocl::KernelArg::ReadWrite(keypoints)).run(2, globalThreads, 0, true);
}
......@@ -260,7 +260,7 @@ bool SURF_OCL::computeDescriptors(const UMat &keypoints, OutputArray _descriptor
if(!kerCalcDesc.run(2, globalThreads, localThreads, true))
return false;
size_t localThreads_n[] = {dsize, 1};
size_t localThreads_n[] = {(size_t)dsize, 1};
size_t globalThreads_n[] = {nFeatures*localThreads_n[0], localThreads_n[1]};
globalThreads[0] = nFeatures * localThreads[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment