[Insight-developers] filter questions

Lydia Ng lng at statsci.com
Tue Nov 7 18:24:13 EST 2000


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




More information about the Insight-developers mailing list