[Insight-developers] Query regarding repeated use of output buffer

Richard Beare richard.beare at gmail.com
Wed Jul 5 01:19:05 EDT 2006


Hi,

I'm developing a filter that reuses the output buffer several times.
During the first pass the data is copied from the input buffer,
processed, and placed in the output buffer. In subsequent passes data
is read from the output buffer, processed and written back to the
output buffer. The read "blocks" are lines of arbitary angles which
don't overlap during a particular pass. I'm wondering whether there is
anything special I need to do with this filter - As far as I can tell
the core computational code is performing correctly, but I'm seeing
some errors in some situations.

My filter derives from ImageToImageFilter and uses the following
"standard" filter setup in GenerateData():

  this->AllocateOutputs();
  InputImagePointer output = this->GetOutput();
  InputImageConstPointer input = this->GetInput();

  // get the region size
  InputImageRegionType OReg = output->GetRequestedRegion();

Is there anything else I need to do?

Thanks


More information about the Insight-developers mailing list