From a280c10c9ba7730cd9105a91bf1a40e72503a6e3 Mon Sep 17 00:00:00 2001 From: trillos Date: Tue, 8 Dec 2009 14:07:22 +0000 Subject: [PATCH] NTU: Finally Saving Images --- packages/vtk/src/bbvtkMetaImageWriter.xml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/vtk/src/bbvtkMetaImageWriter.xml b/packages/vtk/src/bbvtkMetaImageWriter.xml index 2d60bd1..78b0237 100644 --- a/packages/vtk/src/bbvtkMetaImageWriter.xml +++ b/packages/vtk/src/bbvtkMetaImageWriter.xml @@ -1,36 +1,29 @@ - + laurent.guigues at creatis.insa-lyon.fr
Writes .mhd / .mhd image formats (bbfication of vtkMetaImageWriter)
image;read/write vtkMetaImageWriter.h -vtkImageData.h +vtkImageData.h +vtkMetaImageWriter
    vtkMetaImageWriter* w = vtkMetaImageWriter::New();
-std::cout << "a"<ShallowCopy(bbGetInputIn());
-bbGetInputIn()->Update();
+   bbGetInputIn()->Update();
    w->SetInput(bbGetInputIn());
    w->SetCompression(false);  // JPR
+   w->SetFileDimensionality(bbGetInputIn()->GetDataDimension()); //NTU
    w->SetFileName(bbGetInputFilename().c_str());
-
-bbGetInputIn()->Print(std::cout);
-std::cout << "a '"<< bbGetInputFilename()<<"'"<Update();
+   w->Update();   
    w->Write();
-std::cout << "a"<Delete();
-std::cout << "a"<
-
   
  
 
-- 
2.47.1