[Insight-users] How to get the distance between slices

jiang jiang at TI . Uni-Trier . DE
Thu, 23 Oct 2003 11:34:09 +0200


Hi All,
I get a volume by reading a series of DICOM files. Part of my code is:
   typedef signed short                    PixelType;
   typedef itk::Image<PixelType, 3>		  ImageNDType;
   ImageNDType::ConstPointer   m_LoadedVolume;

	m_LoadedVolume=reader->GetOutput();  //reader can read the series of DICOM
files

	numberOfZslices = m_LoadedVolume->GetBufferedRegion().GetSize()[2];
	numberOfYslices = m_LoadedVolume->GetBufferedRegion().GetSize()[1];
	numberOfXslices = m_LoadedVolume->GetBufferedRegion().GetSize()[0];

I can get the number of slices by this way. How can I know the distance
between slices?

Thanks a lot!

Chunyan Jiang