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