]> Creatis software - clitk.git/commitdiff
- change graftoutput with setoutput in filter
authordsarrut <dsarrut>
Thu, 27 May 2010 09:22:26 +0000 (09:22 +0000)
committerdsarrut <dsarrut>
Thu, 27 May 2010 09:22:26 +0000 (09:22 +0000)
itk/clitkResampleImageWithOptionsFilter.txx

index 993b7ec85abc8199c6d2822133a6c4fe96fc1202..b9969dacb9b1ad1d4a69cae08e1752b5f5d185ef 100644 (file)
@@ -188,8 +188,8 @@ GenerateData()
   static const unsigned int dim = InputImageType::ImageDimension;
 
   // Set regions and allocate
-  this->GetOutput()->SetRegions(m_OutputRegion);
-  this->GetOutput()->Allocate();
+  //this->GetOutput()->SetRegions(m_OutputRegion);
+  //this->GetOutput()->Allocate();
   // this->GetOutput()->FillBuffer(m_DefaultPixelValue);
 
   // Create main Resample Image Filter
@@ -288,7 +288,10 @@ GenerateData()
 
   // Set output
   // DD("before Graft");
-  this->GraftOutput(filter->GetOutput());
+
+  //this->GraftOutput(filter->GetOutput());
+  this->SetNthOutput(0, filter->GetOutput());
+
   // DD("after Graft");
 }
 //--------------------------------------------------------------------