Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you probably should update your opencv to some later version, like 3.4.4 (which has the mentioned fix)

in the meantime, you have to copy back to a cv::Mat to save it:

UMat gray = ...
Mat m = gray.getMat(ACCESS_READ);
imwrite("lena_gray.jpg", m);