X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FVTKTestRead.cxx;h=186afda0caedc9b23db178bc32a07c3d51fe1535;hb=de3b7ba046faa2c6728c25d54d22eafe6a24040d;hp=89015c9ed48c9c1fb3f552303b137ce4ad4f0975;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/Testing/VTKTestRead.cxx b/Testing/VTKTestRead.cxx index 89015c9e..186afda0 100644 --- a/Testing/VTKTestRead.cxx +++ b/Testing/VTKTestRead.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestRead.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:05:26 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/11/21 10:06:47 $ + Version: $Revision: 1.13 $ 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" @@ -40,7 +39,7 @@ int VTKReadTest(vtkTesting *t,vtkImageViewer *viewer, std::string const &filename, std::string const &referenceFileName) { - int retVal = 0; //by default this is an error + int retVal; // = 0; (to avoid bcc5.5 warnings) t->CleanArguments(); t->AddArgument("-D"); @@ -50,19 +49,8 @@ int VTKReadTest(vtkTesting *t,vtkImageViewer *viewer, t->AddArgument("-T"); t->AddArgument( "." ); - // Instead of directly reading the dicom let's write it down to another file - // do a scope to be sure everything gets cleanup - { - gdcm::FileHelper file( filename ); - file.GetImageData(); - file.SetWriteModeToRaw(); - file.WriteDcmExplVR( "TestWrite.dcm" ); - } - - // Ok for now still use the original image, vtkGdcmReader *reader = vtkGdcmReader::New(); - //reader->SetFileName( filename.c_str() ); - reader->SetFileName( "TestWrite.dcm" ); + reader->SetFileName( filename.c_str() ); reader->Update(); double range[2]; @@ -216,6 +204,8 @@ int VTKTestRead(int argc, char *argv[]) return ret; } + + gdcm::Debug::DebugOn(); // Comment out when no bug is to be tracked // Test for all images int i = 0;