Ask Your Question

alvisedt's profile - activity

2015-03-30 10:16:27 -0600 commented answer OpenCV + OpenGL: proper camera pose using solvePnP

I would like to point out that when building the viewMatrix, is better to initialize it like

cv::Mat viewMatrix = cv::Mat::zeros(4, 4, CV_64FC1);

instead of simply cv::Mat(---). That will cause problem especially when going from-to debug release modes. Thanks a lot for the hint anyway!