From 8f4652ccc78659f8b5fa4784d3a372cb37f0c702 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 28 Apr 2005 14:32:54 +0000 Subject: [PATCH] Fix Z dimension bug Thx to Benoit for reporting it --- vtk/vtkGdcmReader.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vtk/vtkGdcmReader.cxx b/vtk/vtkGdcmReader.cxx index db2e605d..bb13548d 100644 --- a/vtk/vtkGdcmReader.cxx +++ b/vtk/vtkGdcmReader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmReader.cxx,v $ Language: C++ - Date: $Date: 2005/04/28 09:29:05 $ - Version: $Revision: 1.69 $ + Date: $Date: 2005/04/28 14:32:54 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -83,7 +83,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.69 $"); +vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.70 $"); vtkStandardNewMacro(vtkGdcmReader); //----------------------------------------------------------------------------- @@ -745,7 +745,10 @@ int vtkGdcmReader::CheckFileCoherenceLight() } int NX = GdcmFile.GetXSize(); int NY = GdcmFile.GetYSize(); - int NZ = GdcmFile.GetZSize(); + // CheckFileCoherenceLight should be called *only* when user knows + // he deals with single frames files. + // Z size is then the number of files. + int NZ = InternalFileNameList.size(); std::string type = GdcmFile.GetPixelType(); vtkDebugMacro(<< "The first file is taken as reference: " << filename->c_str()); -- 2.45.1