First time here? Check out the FAQ!
answered 2014-03-16 03:27:00 -0600
GpuMat doesn't support expressions like Mask == 0. You have to call plain functions like cv::gpu::bitwise_not:
GpuMat
Mask == 0
cv::gpu::bitwise_not
cv::gpu::bitwise_not(mask, mask); img.setTo(Scalar::all(0), mask);