[vtkusers] lens distortion simulation

Francois Bertel francois.bertel at kitware.com
Fri Mar 27 13:47:19 EDT 2009


The only way I can think of to distort the image in VTK is to to set
the ViewAngle of the camera (expressed in degrees) to a large value
like 100 (the initial value is 30)
and make the distance from the camera to the object to be distorted
really small.

It is not lens distortion though, it is just perspective distortion.
And it is not real fish-eye lens projection either because the
projection happens on a plane not on a spherical shape.

On Fri, Mar 27, 2009 at 1:10 PM, nugg <jsantam.hm at hotmail.com> wrote:
>
> Hi Giancarlo,
>
>  It is a good question (your second point about modeling lens distortion).
> I would
> also be grateful with any VTK user how achieved such a challenging feature.
>
> Regards.
>
>
> Giancarlo Amati wrote:
>>
>>
>> Good morning everybody,
>>
>> I'm developing a software for the simulation of an endoscopy, I have two
>> questions:
>>
>> 1) I need to put a mask which is black everywhere but in the center for a
>> radious of about 500 pixels....through which I want to see my 3D model
>> behind.
>> 2) More important: is there any class in VTk which allows to apply some
>> distortion factors to the camera lens and see the 3D model distorted?
>>
>> Kind regards.
>> Giancarlo
>>
>> _________________________________________________________________
>> Non solo posta: scopri i nuovi servizi Windows Live.
>> http://clk.atdmt.com/GBL/go/136430530/direct/01/
>> _______________________________________________
>> 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 VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
> --
> View this message in context: http://www.nabble.com/lens-distortion-simulation-tp22742427p22745183.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list