Great!
I'm sending this to the users-list to inform the others. 

Best Regards,
Ingmar


-----Ursprüngliche Nachricht-----
Von: Yashodhan Nevatia [mailto:[email protected]] 
Gesendet: Donnerstag, 16. September 2010 15:19
An: Wegner Ingmar
Betreff: Re: AW: [mitk-users] Using a vtkCamera for Augmented Reality

Hi Ingmar,

Yes, I had built the MITK solution again, but it seems as if it wasnt 
rebuilding, but just trying to relink. After forcing a rebuild it seems to be 
fine.

Thanks,

Yasho

----- Original Message -----
From: "Wegner Ingmar" <[email protected]>
To: "Yashodhan Nevatia" <[email protected]>, "Müller 
Michael" <[email protected]>
Cc: [email protected]
Sent: Thursday, September 16, 2010 3:11:14 PM
Subject: AW: [mitk-users] Using a vtkCamera for Augmented Reality

Hi Yashodhan,
did you recompile your solution after changing to a new VTK version?
Did you compile VTK with QT support?

Best Regards,
Ingmar

-----Ursprüngliche Nachricht-----
Von: Yashodhan Nevatia [mailto:[email protected]]
Gesendet: Donnerstag, 16. September 2010 14:32
An: Müller Michael
Cc: [email protected]
Betreff: Re: [mitk-users] Using a vtkCamera for Augmented Reality

Hi Micheal,

I forgot to mention that I was using VTK 5.4.2.

I have today built VTK 5.6.0, and noticed that the VTK_USE_QVTK option
in CMAKE is no longer present. There is a VTK_USE_QT flag (which may or
may not do the same thing). However, MITK (rev 25955) does not build
(linking errors in pic2vtk: Unresolved external symbol
vtkImageReader::SetDataMask). The signature for the function has changed
from vtkImageReader::SetDataMask(int) in VTK 5.4 to
vtkImageReader::SetDataMask(vtkTypeUInt64) in 5.6. I'm not sure yet if
this is the cause of the problem.

Have you encountered this error?

Yasho

----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "[email protected]"
<[email protected]>
Sent: Wednesday, September 15, 2010 5:03:55 PM
Subject: Re: [mitk-users] Using a vtkCamera for Augmented Reality

Hi,

actually the vtk Camera offers a lot of sophisticated methods to
influence its behavior. E.g. you can set your own homogeneous transform
(including skewing etc.) with
vtkCamera::SetUserViewTransform (vtkHomogeneousTransform *transform)
or void vtkCamera::ApplyTransform ( vtkTransform * t )

Have a look in the documentation
http://www.vtk.org/doc/nightly/html/classvtkCamera.html

Regards,
Michael

-----Ursprüngliche Nachricht-----
Von: Yashodhan Nevatia [mailto:[email protected]]
Gesendet: Mittwoch, 15. September 2010 16:52
An: Baumhauer Matthias
Cc: [email protected]
Betreff: Re: [mitk-users] Using a vtkCamera for Augmented Reality

Hi Matthias,

The problem is that apart from the position, orientation and focal
points, i also have other parameters to set (such as possible skew and
center pixels).

In OSG, I construct a projection matrix out of this (using orthographic
projections), however in vtk I cannot directly set a projection matrix,
but just parameters for a standard projection (parallel or frustrum).

Yashodhan

----- Original Message -----
From: "Baumhauer Matthias" <[email protected]>
To: "Yashodhan Nevatia" <[email protected]>
Cc: "[email protected]"
<[email protected]>
Sent: Wednesday, September 15, 2010 4:39:27 PM
Subject: AW: [mitk-users] Using a vtkCamera for Augmented Reality

Hi,

Basically, this should work:

mitk::BaseRenderer* renderer =
mitk::BaseRenderer::GetInstance(m_MultiWidget->mitkWidget4->GetRenderWindow());
vtkRenderer* vtkRenderer = renderer->GetVtkRenderer();
vtkCamera* camera = vtkRenderer->GetActiveCamera();
if (camera)
{ camera->SetPosition(position[0],position[1],position[2]);
camera->SetFocalPoint(focalPoint[0], focalPoint[1],focalPoint[2]);
camera->SetViewUp(viewUp[0],viewUp[1],viewUp[2]); }
vtkRenderer->ResetCameraClippingRange();

But notice that OpenGL coordinate system is left-handed.

Regards
Matthias



-----Ursprüngliche Nachricht-----
Von: Yashodhan Nevatia [mailto:[email protected]]
Gesendet: Mittwoch, 15. September 2010 16:25
An: mitk-users
Betreff: [mitk-users] Using a vtkCamera for Augmented Reality

Hi,

I want to use the vtkCamera from a QmitkRenderWindow for Augmented
reality. I have the intrinsic and extrinsic parameters for the camera (a
model of the human eye) as a 3x4 matrix M=P*[R t], where P is a 3x3
matrix that models the intrinsic parameters, and [R t] are the extrinsic
parameters (4x4 homogenous transform).

Please could some one help me with providing the parameters to the
vtkCamera object?

Thank you!

Yashodhan

-- Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel: +32 (0)2-721.54.84
Fax: +32 (0)2-721.54.44
URL: www.spaceapplications.com

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances and start
using them to simplify application deployment and accelerate your shift
to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

-- Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel: +32 (0)2-721.54.84
Fax: +32 (0)2-721.54.44
URL: www.spaceapplications.com

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

-- Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel: +32 (0)2-721.54.84
Fax: +32 (0)2-721.54.44
URL: www.spaceapplications.com

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

-- 
Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel:  +32 (0)2-721.54.84
Fax:  +32 (0)2-721.54.44
URL: www.spaceapplications.com
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to