Hi Matthias,

there is an Initialize method of mitk::Image, that allows to initialize with an 
vtkImageData. Since in Initialize(vtkImageData* ...) only the header 
information is used you need to set the actual data via 
SetVolume(vtkImage->GetScalarPointer()). See also the documentation of 
mitk::Image 
(http://docs.mitk.org/nightly-qt4/classmitk_1_1Image.html#d7aad7efb2299a94057dabfb500d4bd4)

Regards
Alex

-----Ursprüngliche Nachricht-----
Von: Matthias Mucha [mailto:[email protected]] 
Gesendet: Dienstag, 18. Mai 2010 22:51
An: [email protected]
Betreff: [mitk-users] Import VTKImageData

Dear List,

Is there a possibility to import a vtkImageData into a MITK-Image?
I build a 3D-Volume in VTK and now I want to display it in MITK but
I haven't found any usable filter in MITK for doing this. For me it seems not 
very useful to convert the vtkImageData into an ITK-Volume and then convert it 
back into an MITK-Image.

Thanks!

Matthias Mucha
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

------------------------------------------------------------------------------

_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------

_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to