[vtkusers] calibrate vtk camera
Laurent Chauvin
lchauvin at bwh.harvard.edu
Tue Nov 11 10:22:20 EST 2014
Hello vtkusers,
I have a camera (fish-eye style) and I'd like to replicate the same
distortion of the camera to the virtual vtk camera.
I computed distortion coefficients and camera matrix (focal length and
principal point) but I'm struggling to apply these parameters to the vtk
camera.
I noticed there is a class called vtkWarpLens, that seems to take all these
parameters (distortion, focal length, principal point, etc...).
However, it seems it cannot be applied on a vtkCamera (it seems to require
an image as input).
Does anyone did something like that before ?
Thank you.
-Laurent
On Wed, Nov 5, 2014 at 10:23 AM, Laurent Chauvin <lchauvin at bwh.harvard.edu>
wrote:
> Hello vtkusers,
>
> I'm trying to calibration a vtk camera so it has the same properties and
> deformation as my real camera.
> I used OpenCV to do the camera calibration and obtain the intrinsic
> parameters.
>
> I applied the focal distance to the vtk camera and the view angle, but now
> I'm wondering how to apply the principal point (optical center) to the vtk
> camera.
>
> I saw there were some topics about it, but none of them really gave a
> clear answer.
>
> Thank you.
> -Laurent
>
>
--
Laurent Chauvin, MS
Surgical Navigation and Robotics Laboratory, Radiology Department
Brigham And Women's Hospital, Harvard Medical School
http://wiki.ncigt.org/index.php/User:Lchauvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141111/05d60b07/attachment.html>
More information about the vtkusers
mailing list