[Insight-developers] filter questions

Lydia Ng lng@statsci.com
Tue, 7 Nov 2000 15:24:13 -0800


Hi,

I have a few filter related questions:

1) Suppose a filter wants to override the output requested region.
Where should this override take place, in GenerateOutputInformation,
UpdateOutputInformation or in the GenerateData function?


2) In function GenerateInputRequestedRegion()
on line 110 of itkShrinkImage.txx we have:

  OutputImagePointer outputPtr = this->GetInput();

Why is it GetInput() instead of GetOutput()?

Ditto line 115 of itkNonThreadedShrinkImage.txx


3) FilterImageBinary used to allocate memory for the output data
in GenerateData(), it doesn't anymore. Why the change?


Thanks,
Lydia