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

Mathieu Malaterre Mathieu . Malaterre at creatis . insa-lyon . fr
Thu, 23 Oct 2003 11:20:58 +0200


jiang wrote:
> 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?

This has already been discussed on the ML:

http://www . itk . org/pipermail/insight-users/2003-September/004761 . html

HTH
mathieu