For creating the 3D+t image, you have to call Initialize() first. With
meshes you don't need to, but for images a call to Initialize is mandatory.
Set the timesteps and channels to that call and that's it.


vtkStructuredPoints* image1 = vtkStructuredPoints::New();
vtkStructuredPoints* image2 = vtkStructuredPoints::New();
vtkStructuredPoints* image3 = vtkStructuredPoints::New();
vtkXMLImageDataReader* reader = vtkXMLImageDataReader::New();
reader->SetFileName("./imageFile1.vti");
reader->Update();
image1->DeepCopy(reader->GetOutput());
reader->Delete();
reader = vtkXMLImageDataReader::New();
reader->SetFileName("./imageFile2.vti");
reader->Update();
image2->DeepCopy(reader->GetOutput());
reader->Delete();
reader = vtkXMLImageDataReader::New();
reader->SetFileName("./imageFile3.vti");
reader->Update();
image3->DeepCopy(reader->GetOutput());
mitk::Image::Pointer image3DT = mitk::Image::New();

image3DT->Initialize(image1, 1, 3); 

image3DT ->SetVolume(image1->GetScalarPointer(), 0);
image3DT ->SetVolume(image3->GetScalarPointer(), 1);
image3DT ->SetVolume(image1->GetScalarPointer(), 2);



That should be enough.
Cheers



                Juan Antonio Moya
Scientific developer
Computational Imaging Lab, Pompeu Fabra University
Networking Research Center on Bioengineering, Biomaterials and Nanomedicine
(CIBER-BBN)

Information & Communication Technologies Department - D. 313 
Pompeu Fabra University, Pg. Circumval·lació 8 
08003 Barcelona - Spain 
Phone +34 935 421350    
-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Neuhaus
Jochen
Enviado el: martes, 19 de febrero de 2008 16:38
Para: [email protected]
Asunto: Re: [mitk-users] loading 3D time series

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:mitk-users-
> [EMAIL PROTECTED] Im Auftrag von Juan A. Moya
> 
> Ok I found out how to do it with images. It was a problem on the
> initialization.
> Cheers
> 


Could you post your solution to the list, so that Christina can take a look
at it?

Regards, 
 Jochen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to