[vtkusers] use of vtkMetaImageReader

samo sandra.moritz at gmx.de
Wed Sep 27 08:22:10 EDT 2006


Hello there

I am very new to vtk and I am a little bit helpless. Does anybody now a good
tutorial or anything else what I can read or try to get to know to vtk? 

Well, what I would like to know is how I can use vtkMetaImageReader. I have
a file with .mdh (my header) and a .raw file (the body). What I tried now
is:

                m_MetaVolumeReader->GetOutput()->SetOrigin(0.0, 0.0, 0.0);
		m_MetaVolumeReader->SetFilePrefix(prefix);
		m_MetaVolumeReader->SetFilePattern("%s%03d.dcm.raw");
		m_MetaVolumeReader->SetDataExtent(0,511,0,511,0,102);
		m_MetaVolumeReader->SetDataSpacing(1.0,1.0,2.0);
		m_MetaVolumeReader->SetDataByteOrderToLittleEndian();
		m_volumeData = m_MetaVolumeReader->GetOutput();
		m_MetaVolumeReader->Update();

When I try this, the program starts but my screen is black. What is missing?
Or do I have to handle the reader in another way? 

Thank you for any help!


-- 
View this message in context: http://www.nabble.com/use-of-vtkMetaImageReader-tf2344390.html#a6525592
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list