X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FVTKTestRead.cxx;fp=Testing%2FVTKTestRead.cxx;h=88a6157eeff8317a009bce752b0a571f8f3fd7a4;hb=6b0359d3c073112a5d6a23114d6adb0fff949e7b;hp=89015c9ed48c9c1fb3f552303b137ce4ad4f0975;hpb=e4071f248493a36a1b8109fffcb924a255152b36;p=gdcm.git diff --git a/Testing/VTKTestRead.cxx b/Testing/VTKTestRead.cxx index 89015c9e..88a6157e 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/02/09 15:06:48 $ + 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 @@ -50,19 +50,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];