From: dsarrut Date: Thu, 27 May 2010 09:22:26 +0000 (+0000) Subject: - change graftoutput with setoutput in filter X-Git-Tag: v1.2.0~634 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=sidebyside;h=77ee327ec2ae14e038106ccebea0f89774733f10;p=clitk.git - change graftoutput with setoutput in filter --- 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"); } //--------------------------------------------------------------------