Program: gdcm
Module: $RCSfile: VTKTestRead.cxx,v $
Language: C++
- Date: $Date: 2005/02/09 15:06:48 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2008/09/15 15:49:21 $
+ Version: $Revision: 1.16 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
-#include "gdcmFileHelper.h"
#include "vtkGdcmReader.h"
#include "vtkImageViewer.h"
#include "vtkImageData.h"
#include "vtkPNGWriter.h"
#include <iostream>
+#include <sstream>
//Generated file:
#include "gdcmDataImages.h"
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");
//----------------------------------------------------------------------
// make test
- ostrstream str;
+ std::ostringstream str;
retVal = t->RegressionTest(image,0.0,str);
image->UnRegister(NULL);
{
std::cerr << str.str();
}
- str.rdbuf()->freeze(1);
if( retVal == vtkTesting::PASSED )
{
return ret;
}
+
+ //GDCM_NAME_SPACE::Debug::DebugOn(); // Comment out when no bug is to be tracked
// Test for all images
int i = 0;