X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkResampleImageWithOptionsFilter.txx;h=b9969dacb9b1ad1d4a69cae08e1752b5f5d185ef;hb=77ee327ec2ae14e038106ccebea0f89774733f10;hp=993b7ec85abc8199c6d2822133a6c4fe96fc1202;hpb=25f2ec51914dc5a55443c223bc52ca8c234fe100;p=clitk.git 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"); } //--------------------------------------------------------------------