[vtkusers] GDCM2 + VTK: wrong slice order?

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Dec 8 07:33:27 EST 2008


On Mon, Dec 8, 2008 at 1:18 PM, Paul Melis <paul at science.uva.nl> wrote:
> Hello,
>
> I'm using VTK 5.2 together with GDCM 2.0.10 to read in a set of MR slices in
> DICOM format. I was under the impression that the vtkGDCMImageReader would
> sort the files given to it (through SetFileNames()) at least by looking at
> the "Image Position (Patient)" tag.

No. Where did you read that ?

When all else fails, read the instructions:

Ref:
http://gdcm.sourceforge.net/html/vtkGDCMImageReader_8h-source.html

00021 // .SECTION Implementation note: when reading a series of 2D
slices, user is
00022 // expected to provide an ordered list of filenames. No sorting
will be applied afterward.

See gdcm::IPPSorter for a common sorting scheme.

2cts
-- 
Mathieu



More information about the vtkusers mailing list