There doesn’t seem to exist a constructor for a cv::Mat object which accepts the four parameters specified in your C++ code. Are you using a specific version of OpenCV which has such a constructor, or is my compiler (clang) simply misunderstanding something?
D:\path\to\face.cc(63,43): error : no matching constructor for initialization of 'cv::Mat'
static const cv::Mat camera_intrinsics = cv::Mat(3, 3, CV_64FC1, K);
^ ~~~~~~~~~~~~~~~~~
There doesn’t seem to exist a constructor for a cv::Mat object which accepts the four parameters specified in your C++ code. Are you using a specific version of OpenCV which has such a constructor, or is my compiler (clang) simply misunderstanding something?