The function "setTo"about gpumat
I define GpuMat Img,Mask, and use" Img.setTo(Scalar::all(0),Mask == 0)",but Vs2010 can't complie and report error.
I define GpuMat Img,Mask, and use" Img.setTo(Scalar::all(0),Mask == 0)",but Vs2010 can't complie and report error.
GpuMat
doesn't support expressions like Mask == 0
. You have to call plain functions like cv::gpu::bitwise_not
:
cv::gpu::bitwise_not(mask, mask);
img.setTo(Scalar::all(0), mask);
cv::gpu::compare(B, cv::Scalar::all(k), A, cv::CMP_GT);
Asked: 2014-03-16 02:16:11 -0600
Seen: 2,794 times
Last updated: Mar 16 '14