cv::GMatDesc cv::descr_of(const cv::UMat &mat) { return GMatDesc{ mat.depth(), mat.channels(),{ mat.cols, mat.rows } }; }