X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestReadSeq.cxx;h=7cd5166ad8a6d5418d0a1b5fd5a149c0b9ebffbd;hb=7fe25e72be2a9851dea9a9a031369877338ede0c;hp=ea92d8900e129b41aebab0022a31deb652b3cf96;hpb=587eff0d2fdea1b61c4cc9aa21f06f2ba8b42c10;p=gdcm.git diff --git a/Testing/VTKTestReadSeq.cxx b/Testing/VTKTestReadSeq.cxx index ea92d890..7cd5166a 100644 --- a/Testing/VTKTestReadSeq.cxx +++ b/Testing/VTKTestReadSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestReadSeq.cxx,v $ Language: C++ - Date: $Date: 2005/01/25 11:25:32 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/02/09 15:31:15 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,7 +15,6 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -#include "gdcmFileHelper.h" #include "vtkGdcmReader.h" #include "vtkImageViewer.h" #include "vtkImageData.h" @@ -34,9 +33,9 @@ #define vtkFloatingPointType float #endif -int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer, - std::string const & filename, - std::string const & referenceFileName) +int VTKReadSeqTest(vtkTesting *t, vtkImageViewer *viewer, + std::string const &filename, + std::string const &referenceFileName) { int retVal = 0; //by default this is an error @@ -63,7 +62,8 @@ int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer, delete[] newFileDcm; reader->Update(); - double *range = reader->GetOutput()->GetScalarRange(); + double range[2]; + reader->GetOutput()->GetScalarRange(range); // Show if( viewer ) @@ -197,7 +197,7 @@ int VTKTestReadSeq(int argc, char *argv[]) } int ret = 0; - vtkTesting* t = vtkTesting::New(); + vtkTesting *t = vtkTesting::New(); vtkImageViewer *viewer; if( show ) viewer = vtkImageViewer::New();