Program: gdcm
Module: $RCSfile: VTKTestWriteSeq.cxx,v $
Language: C++
- Date: $Date: 2005/03/23 20:26:13 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2007/09/18 07:58:39 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "vtkImageShiftScale.h"
#include <iostream>
+#include <sstream>
//Generated file:
#include "gdcmDataSeqImages.h"
std::string const &filename,
std::string const &referenceFileName)
{
- int retVal = 0; //by default this is an error
+ int retVal;
// Set the reader
vtkGdcmReader *reader = vtkGdcmReader::New();
// Write the image
vtkGdcmWriter *writer = vtkGdcmWriter::New();
writer->SetFilePattern("%s%02d.dcm");
- writer->SetFilePrefix("TestWrite");
+ char filePrefix[] = "TestWrite";
+ writer->SetFilePrefix(filePrefix);
writer->SetFileDimensionality(2);
writer->SetInput(reader->GetOutput());
writer->Write();
// make test
int ret = 0;
- ostrstream str;
+ std::ostringstream str;
char *newFilePng = new char[referenceFileName.size()+1];
for(int j=0;j<fileCount;j++)
{
{
std::cerr << str.str();
}
- str.rdbuf()->freeze(1);
if( retVal == vtkTesting::PASSED )
{
}
}
- gdcm::Debug::DebugOn();
+ GDCM_NAME_SPACE::Debug::DebugOn();
int ret = 0;
vtkTesting *t = vtkTesting::New();