I'm in the same trouble,
I got a code that from a std::map of vtkPolyData I generate a single
mitk::Surface with a PolyData in different timesteps. That works with the
time slider provided.
However if I do the same with a std::map of images, and generate a single
mitk::Image with each image in different timestep it doesn't work with the
slider.
I would appreciate any idea.
Code::
// - typedef std::map<mitk::Image::Pointer> mitkVectorMapType;
// - mitkVectorMapType m_ContainerMap;
mitkVectorMapType::iterator iter;
iter = this->m_ContainerMap.begin();
const mitk::PixelType &type = iter->second->GetPixelType();
const mitk::Geometry3D *geometry = iter->second->GetGeometry();
unsigned int channels = 1;
unsigned int *dimensions = iter->second->GetDimensions();
// the last dimension corresponds to the number of phases (time steps)
dimensions[3] = numberOfAvailablePhasesInContainer;
mitk::Image::Pointer publishedImage = mitk::Image::New();
//this initialization only affects the header
publishedImage->Initialize(type, *geometry, channels,
this->m_ContainerMap.size(), true);
unsigned int counter = 0;
for (iter = this->m_ContainerMap.begin(); iter !=
this->m_ContainerMap.end(); iter++)
{
publishedImage->SetVolume(iter->second->GetData(), counter);
counter++;
}
publishedImage->Update();
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 Christina
Lacalli
Enviado el: lunes, 18 de febrero de 2008 15:29
Para: [email protected]
Asunto: [mitk-users] loading 3D time series
Dear all,
I have a sequence of 3D volumes (3D + time) in *.mhd file format and I
want to visualize them in MITK. I already extended the MainApp, so that
I can load *.mhd files.
For navigating through the different time steps I thaught I can use the
slider "time" in slicer, but it doesn't work.
Do I have to write my own TimeSeriesReader for *.mhd files to load my
sequence?
Thanks for any comments or ideas how I can solve that problem,
Christina
-------------------------------------------------------------------------
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