Hi Li, Looks like you may want to set the projection matrix with the intrinsic values. The pv / vtkCamera does not provide an API to do that but there is nothing stopping you from exposing it in your copy of the source.
-Nikhil. On Fri, Apr 20, 2012 at 12:31 PM, Li Guan <li.9...@gmail.com> wrote: > Dear all, > > I am trying to augment an image from a real camera to a VR world. > I came into a problem try to configure the paraview camera to the real > camera. > > I know that setting camera position, view-up direction and focal point, > will give me the correct extrinsics of the camera (i.e. orientation and > displacement of the camera in the world coordinate system), but I am now > stuck at setting the intrinsics: for example my camera center is not at the > image center, therefore, by just setting up the extrinsics does not give me > the correct rendering view I need. > > Is there a standard way to set up the camera so that I get correct > intrinsics? > > Let's say we have K R t for my real camera, the image resolution is > [640,480]: > > K = [1500 0 310 > 0 1400 230 > 0 0 1] > > R = [1 0 0 > 0 1 0 > 0 0 1] > > t = [0 0 0]'; > > Many thanks! > > Li > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview