X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestWrite.cxx;h=c3d989ee6fd3db966ca604727f9b9d5b7131d275;hb=d231595f2ad64eb1921bef15a7423c6ea6433398;hp=c7b6f7a424e3f7a55f507445f2ce086102ac62bf;hpb=587eff0d2fdea1b61c4cc9aa21f06f2ba8b42c10;p=gdcm.git diff --git a/Testing/VTKTestWrite.cxx b/Testing/VTKTestWrite.cxx index c7b6f7a4..c3d989ee 100644 --- a/Testing/VTKTestWrite.cxx +++ b/Testing/VTKTestWrite.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestWrite.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.9 $ 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 "vtkGdcmWriter.h" #include "vtkImageViewer.h" @@ -36,8 +35,8 @@ #endif int VTKWriteTest(vtkTesting *t,vtkImageViewer *viewer, - std::string const & filename, - std::string const & referenceFileName) + std::string const &filename, + std::string const &referenceFileName) { int retVal = 0; //by default this is an error @@ -68,7 +67,8 @@ int VTKWriteTest(vtkTesting *t,vtkImageViewer *viewer, reader->SetFileName( "TestWrite.dcm" ); reader->Update(); - double *range=reader->GetOutput()->GetScalarRange(); + double range[2]; + reader->GetOutput()->GetScalarRange(range); int dim[3]; reader->GetOutput()->GetDimensions( dim ); @@ -196,7 +196,7 @@ int VTKTestWrite(int argc, char *argv[]) } int ret = 0; - vtkTesting* t = vtkTesting::New(); + vtkTesting *t = vtkTesting::New(); vtkImageViewer *viewer; if( show ) viewer = vtkImageViewer::New();