Win7 x64, MSVC 2013, cmake 3.3.2, branch 3.1.0-165-gba1d3ef. Error if as argument for cvtColor used the same UMat and opencl support disabled by ocl::setUseOpenCL(false); UMat frame; cvtColor(frame, frame, CV_BGR2GRAY);