[vtkusers] Distortion with vtkCamera

p.wolber at dkfz-heidelberg.de p.wolber at dkfz-heidelberg.de
Thu Aug 4 06:44:47 EDT 2005


Dear Group,
I`ve been working on a problem recently, I hope you can help me out with.

First let me describe the scene I`m trying to render:
In the foreground I want to display a PointSet (StructuredGrid) representing a
path, in the background there should be a video, delivered by a camera at runtime.

Now the tricky part:
The camera I`m using is equipped with a fisheye-lens (it`s an endoscopic
camera). Therefore the video delivered appears pretty distorted. The PointSet on
the other hand is based on data without any distortion. 
As a result the video and the path do not match excactly.

To achieve matching, I want to distort the Path (PointSet) in the same way as
the optical system of the camera does it.

I haven´t found a method in vtkCamera, that would allow me to distort the view
of the camera. Will I have to derive from vtkCamera and write a method myself
(has anyone done anything in this direction) ?
Or is there another way to achieve the distortion of the path.

I´ve already considered using vtkWarpLens, but it doesn`t do the job, cause it´s
only a filter!

Lookig forward to your answers.

...philipp



More information about the vtkusers mailing list