[Dcmlib] Re: [vtkusers] voxel's volume
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Apr 5 16:38:43 CEST 2006
> To be *absolutely* sure the ZSpacing you calculate is the right you, you
> need to be *absolutely* sure that the TWO images you're dealing with
> have the same orientation, and are consecutive.
> To know the if the images are consecutive, you *need* to sort the whole
> 'serie'.
>
> The method
> bool gdcm::SerieHelper::ImagePositionPatientOrdering(FileList *fileSet);
> does the job, but I'm not sure vtkgdcmReader takes it into account (I'll
> check and modify the method)
>
> I'm almot sure ITK doesn't.
>
> --> Mathieu ? do you agree?
Of course not ! I wrote the damn thing and it is doing the right
computation. We always use this exact algorithm (normal+image origin) to
compute the z spacing.
The Z Spacing dicom tag is only used in the case of a multi frame image.
SO ITK IS PERFECTLY SAFE !!
Mathieu
More information about the Dcmlib
mailing list