When I run my program, the camera starts off far off from the scene with its translation and rotation parameters wrong (second figure). I have to do a lot of dragging and scrolling before I get it to a decent but still wrong position and viewing angle (third figure). I would like the camera to be initialized and viewing the 3D scene just like in the 2D image in the first figure.
I could try functions such as http://docs.opencv.org/2.4/modules/viz/doc/viz3d.html#viz-viz3d-setviewerpose but I would need the parameters which I don't know. Would it be the origin ?