[Insight-developers] Streaming and minipipelines

Cory Quammen cquammen at cs.unc.edu
Thu Jul 14 09:36:55 EDT 2011


Dear streaming experts,

I am working on a filter with a minipipeline (ConvolutionImageFilter),
and I want to make sure it supports streaming. For a given output
request region, this filter needs to request a slightly larger input
region from the image input and the largest possible region from the
kernel image input.

Now, assuming all the filters in the minipipeline support streaming,
what should ConvolutionImageFilter::GenerateInputRequestedRegion() do?
It seems to me that the minipipeline filters will handle generating
the proper regions in the input for a given requested output region.
If I do not override GenerateInputRequestedRegion(), my tests fail.
However, if I do override GenerateInputRequestedRegion() and set the
input requested regions for both inputs (image and kernel image) to
have zero size, everything seems to work.

If there is a presentation or wiki page on the particulars of
streaming involving filters with minipipelines, I'm happy to be told
to go read that. A few minutes of Googling didn't reveal anything.

Thanks much!
Cory

-- 
Cory Quammen
Research Associate
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen


More information about the Insight-developers mailing list