Commit c9442e62 authored by Cresson Remi's avatar Cresson Remi
Browse files

FIX: bufferedRegion instead of regions used in allocation

parent 78ce0cff
...@@ -59,7 +59,7 @@ protected: ...@@ -59,7 +59,7 @@ protected:
TensorflowStreamerFilter(); TensorflowStreamerFilter();
virtual ~TensorflowStreamerFilter() {}; virtual ~TensorflowStreamerFilter() {};
virtual void GenerateInputRequestedRegion(void); virtual void UpdateOutputData(itk::DataObject *output){(void) output; this->GenerateData();}
virtual void GenerateData(); virtual void GenerateData();
......
...@@ -24,18 +24,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage> ...@@ -24,18 +24,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
m_OutputGridSize.Fill(1); m_OutputGridSize.Fill(1);
} }
template <class TInputImage, class TOutputImage>
void
TensorflowStreamerFilter<TInputImage, TOutputImage>
::GenerateInputRequestedRegion()
{
// We intentionally break the pipeline
ImageType * inputImage = static_cast<ImageType * >( Superclass::ProcessObject::GetInput(0) );
RegionType nullRegion;
inputImage->SetRequestedRegion(nullRegion);
}
/** /**
* Compute the output image * Compute the output image
*/ */
...@@ -47,7 +35,7 @@ TensorflowStreamerFilter<TInputImage, TOutputImage> ...@@ -47,7 +35,7 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
// Output pointer and requested region // Output pointer and requested region
OutputImageType * outputPtr = this->GetOutput(); OutputImageType * outputPtr = this->GetOutput();
const RegionType outputReqRegion = outputPtr->GetRequestedRegion(); const RegionType outputReqRegion = outputPtr->GetRequestedRegion();
outputPtr->SetRegions(outputReqRegion); outputPtr->SetBufferedRegion(outputReqRegion);
outputPtr->Allocate(); outputPtr->Allocate();
// Compute the aligned region // Compute the aligned region
...@@ -106,7 +94,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage> ...@@ -106,7 +94,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
progress.CompletedPixel(); progress.CompletedPixel();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment