Program: gdcm
Module: $RCSfile: VTKTestReadSeq.cxx,v $
Language: C++
- Date: $Date: 2005/01/20 16:31:42 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2005/02/09 15:31:15 $
+ 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
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
-#include "gdcmFileHelper.h"
#include "vtkGdcmReader.h"
#include "vtkImageViewer.h"
#include "vtkImageData.h"
#define vtkFloatingPointType float
#endif
-int VTKReadSeqTest(vtkTesting *t,vtkImageViewer *viewer,
- std::string const & filename,
- std::string const & referenceFileName,
- bool show )
+int VTKReadSeqTest(vtkTesting *t, vtkImageViewer *viewer,
+ std::string const &filename,
+ std::string const &referenceFileName)
{
int retVal = 0; //by default this is an error
delete[] newFileDcm;
reader->Update();
- double *range = reader->GetOutput()->GetScalarRange();
+ double range[2];
+ reader->GetOutput()->GetScalarRange(range);
// Show
- if( show )
+ if( viewer )
{
viewer->SetInput ( reader->GetOutput() );
viewer->OffScreenRenderingOff();
}
int ret = 0;
- vtkTesting* t = vtkTesting::New();
+ vtkTesting *t = vtkTesting::New();
vtkImageViewer *viewer;
if( show )
viewer = vtkImageViewer::New();
}
else
{
- ret = VTKReadSeqTest(t,viewer,argv[1+show],argv[2+show],show);
+ ret = VTKReadSeqTest(t,viewer,argv[1+show],argv[2+show]);
t->Delete();
if( viewer )
viewer->Delete();
pngfile = pngfile.substr(0, dot_pos).append( ".png" );
pngfile.insert( 0, "Baseline/");
- ret += VTKReadSeqTest(t,viewer,filename,pngfile,show);
+ ret += VTKReadSeqTest(t,viewer,filename,pngfile);
}
t->Delete();
if( viewer )