From 77ee327ec2ae14e038106ccebea0f89774733f10 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Thu, 27 May 2010 09:22:26 +0000 Subject: [PATCH] - change graftoutput with setoutput in filter --- itk/clitkResampleImageWithOptionsFilter.txx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/itk/clitkResampleImageWithOptionsFilter.txx b/itk/clitkResampleImageWithOptionsFilter.txx index 993b7ec..b9969da 100644 --- a/itk/clitkResampleImageWithOptionsFilter.txx +++ b/itk/clitkResampleImageWithOptionsFilter.txx @@ -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"); } //-------------------------------------------------------------------- -- 2.47.1