Skip to content

Instantly share code, notes, and snippets.

View iamNCJ's full-sized avatar
💡
Lighting the world!

Chong Zeng iamNCJ

💡
Lighting the world!
View GitHub Profile
@davegreenwood
davegreenwood / OpenCVmatrix.txt
Created July 25, 2019 06:56
OpenCV to OpenGL projection
How to get the proper OpenGL projection matrix from the OpenCV camera calibration values?
For the simple common case where the OpenCV camera matrix has the form:
|fx 0 cx|
|0 fy cy|
|0 0 1|
The corresponding OpenGL projection matrix can be computed like this: