[Insight-developers] filter questions

Luis Ibanez ibanez at cs.unc.edu
Thu Nov 9 01:34:12 EST 2000


Hi,

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

I made that change  in response to the new needs of the execution
model.

The allocation was done when we expected that the filter will
receive an entire input image, and using its size, will be able
to determine the size of the output image.  So the filter allocated
this output memory before being executed.

Now with the streaming model.  The filters should not allocate the
memory for the output image because the output is now imposed
as a constrain.   The filter is now told to : "produce data for filling
this particular region of the image", the filter should then determine
how much input it needs for producing this output region.

So when the filter is executed, allocations should have already 
been solved by... "someone else",  and my guess is that this 
"someone else" is the superprocess controlling the setting of 
image regions and activating the filters on each particular
piece.

Please correct me if this is a wrong assumption...

Thanks 

Luis





More information about the Insight-developers mailing list