#include "vtkImageData.h"
#include "vtkImageMagnify.h"
#include "vtkImageCast.h"
int main(int, char *[])
{
if(!directory) return 1;
std::string file = std::string(directory) + "/test.acr";
std::cout << file << std::endl;
reader->SetFileName( file.c_str() );
reader->Update();
vtkImageCast *cast = vtkImageCast::New();
cast->SetInput( reader->GetOutput() );
cast->SetOutputScalarTypeToUnsignedShort();
vtkImageMagnify *magnify = vtkImageMagnify::New();
magnify->SetInput( cast->GetOutput() );
magnify->SetInterpolate( 1 );
magnify->SetInterpolate( 0 );
int factor = 100;
magnify->SetMagnificationFactors (factor, factor, 1);
writer->SetFileName( "/tmp/bla.dcm" );
writer->SetInput( magnify->GetOutput() );
writer->SetImageFormat( reader->GetImageFormat() );
writer->SetShift( reader->GetShift() );
writer->SetScale( reader->GetScale() );
reader->Delete();
magnify->Delete();
writer->Delete();
return 0;
}