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

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jul 5 18:54:40 EDT 2006


Hi Richard,

What are the errors ?
Reading and writing to/from the output image should not be a problem.  
If you update the repository (I think you are speaking of the  
vanHerkGilWerman one), I can also give a look at the result and at  
the code.

Gaetan

Le 5 juil. 06 à 07:19, Richard Beare a écrit :

> 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
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list