Merge pull request #3611 from jet47:fix-gpumat-setto

pull/3630/head
Vadim Pisarevsky 10 years ago
commit e501c61c04
  1. 5
      modules/core/src/cuda/gpu_mat.cu

@ -390,6 +390,11 @@ GpuMat& cv::cuda::GpuMat::setTo(Scalar value, InputArray _mask, Stream& stream)
GpuMat mask = _mask.getGpuMat();
if (mask.empty())
{
return setTo(value, stream);
}
CV_DbgAssert( size() == mask.size() && mask.type() == CV_8UC1 );
typedef void (*func_t)(const GpuMat& mat, const GpuMat& mask, Scalar scalar, Stream& stream);

Loading…
Cancel
Save