Determine extrinsic camera with opencv to opengl with world space object

前端 未结 3 1677
执笔经年
执笔经年 2020-12-24 09:47

I\'m using opencv and openframeworks (ie. opengl) to calculate a camera (world transform and projection matrixes) from an image (and later, several images for triangulation)

3条回答
  •  失恋的感觉
    2020-12-24 10:46

    I think you should not take the inverse of gWorldToCalibration

    ofMatrix4x4 gCalibrationToWorld = gWorldToCalibration.getInverse();
    

    Here I posted code, which is doing more or less what you want OpenCV- to OpenGL COS. It's in C, but should be similar in C++.

提交回复
热议问题