Viz3d setCamera() only works the first time!!!!

asked 2018-05-28 11:22:49 -0500

fab_cut gravatar image

"The viz3d API allows us to make a cv::viz::Camera with desired intrinsic parameters, and to use the camera by calling setCamera. These values appear to only "stick" the first time setCamera() is called."

Was this issue recently solved?

edit retag flag offensive close merge delete

Comments

Which issue ? Without any code it is difficult to reproduce problem

LBerger gravatar imageLBerger ( 2018-05-28 12:18:20 -0500 )edit
1
fab_cut gravatar imagefab_cut ( 2018-05-28 13:17:42 -0500 )edit

Can you run this code ? I must add :

Ptr<viz::Viz3d> myWindow = makePtr<viz::Viz3d>("setCamera() TEST");
myWindow->spinOnce(1);

to run it

Now I don't understand line 467 :

transform->SetMatrix(vtkmatrix(proj_mat * old_proj_mat.inv()));

Shouldn't it be only :

transform->SetMatrix(vtkmatrix(proj_mat));
LBerger gravatar imageLBerger ( 2018-05-28 13:59:41 -0500 )edit

It is like setCamera is not having any effect...

fab_cut gravatar imagefab_cut ( 2018-05-28 14:45:20 -0500 )edit