Hi Carlos,
you can use the mitk::ImportItkImage() and then manually add a mitk::DataNode 
to the mitk::DataStorage.

mitk::Image::Pointer mitkImage = mitk::ImportItkImage(itkImage);
mitk::DataNode::Pointer newNode = mitk::DataNode::New();
newNode->SetData(mitkImage);
mitk::DataStorage* ds = this->GetDefaultDataStorage();
ds->Add( newNode );

Regards
Ingmar


Von: apollocarlos [mailto:[email protected]]
Gesendet: Montag, 19. April 2010 11:33
An: mitk-users
Betreff: [mitk-users] how to convert ITKImage to MITKImage?

Hi all,

In the old version of MITK, I know it works by using 
mitk::DataTreeHelper::AddItkImageToDataTree.

But in MITK 0.14, I do not use mitk::DataTree, and I want to know if there 
exists a direct way to convert ITKImage to MITKImage.

Thank you.


2010-04-19
________________________________
apollocarlos
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to