[Insight-developers] An idea for new filter to get around TileImageFilter memory requirements

Luis Ibanez luis.ibanez at kitware.com
Sat Feb 18 08:27:39 EST 2006



Hi Kent,

I wonder if the PasteImageFilter may be used for inserting
the image of dimension D into the image of dimension D+1.

http://www.itk.org/Insight/Doxygen/html/classitk_1_1PasteImageFilter.html


Otherwise, this PasteImageFilter may also be a good starting
point for the filter that you are planning to write.


That seems to be a very useful operation, and if we don't have
another filter in ITK that provides that functionality, then it
is certainly a good idea to add one.



    Luis



-----------------------------
Kent Williams wrote:
> I recently replaced some inline pixel copying code in our 4D 
> OrientImageFilter with the TileImageFilter. The great strength of this 
> approach is that the resulting code is very clear and concise. Basically 
> the filter works this way:
> 
> Assume a 4D image as input, which represents a series of volumes.
> for each i < # of volumes
>  current imageVolume = ( ExtractImageFilter(input) | OrientImageFilter )
>  tileImageFilter->SetNthInput(i, current imageVolume)
> end
> tileImageFilter->Update();
> reoriented 4D image = tileImageFilter->GetOutput();
> 
> This means the total memory budget for the 4D Orient filter is twice the 
> size of the input image, i.e. the size of the output image, plus the 
> size of all the volumes that comprise the input image. If there was a 
> filter to insert an image of dimension D into an image of dimension D+1 
> at an offset, then the filter would only use the memory needed to 
> contain the output image.
> 
> I even know how to write such a filter -- derive from 
> InPlaceImageFilter, make the input Image the first input and the volume 
> to insert the second input.  I guess my questions are these:  Is there 
> enough use for this filter to justify adding it to ITK? And what would 
> be a good name for it?
> 
> _______________________________________________
> 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