Hi Miri, the class mitk::Image offers an public method:
mitk::Image::Initialize( vtkImageData* vtkimagedata, int channels, int tDim, int sDim) This method initializes the 'header' of the image, the data is not imported at this moment. For importing the data vector from the vtkImage, you have to call SetVolume( vtkImage->GetScalarPointer() ) afterwards. Best, Jan On Nov 9, 2011, at 8:07 PM, Miri Trope wrote: > Hi fellows, > > what's the faster/direct way to convert from vtk image to mitk image ? > > I manipulated on vtk's image (by a pointer to vtkImageData) some filters and > would like to view my output image, which might be an mitk image (am I right > that just mitk images can be viewed by mitk interface?) > > Anyway, how should I do that ? > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
