[Insight-developers] Contrib: itkAverageImageFilter w/ example and tests

Torsten Rohlfing torsten at synapse.sri.com
Fri Sep 2 13:27:36 EDT 2005


Hi --

Here's something I couldn't find in ITK so far and therefore implemented 
myself: a filter to average an arbitrary number of images (all on the 
same grid). Class sources, example command line application, and test 
(with patch file for test integration) are in

  http://www.stanford.edu/~rohlfing/itk_averageimagefilter.tar.gz

The filter should handle a large range of pixel types, including vector 
images etc. (see class documentation for a list of necessary pixel type 
operators). It would be nice if someone could put this code into the CVS 
repository sometimes, even if it takes until after the coming release.

As a note on the side - it seems that the itk::NumericTraits do not 
provide a way to determine whether a real value should be rounded or not 
when assigned to any given type. Is there something for that purpose 
elsewhere, or has it just not been necessary so far?

Best,
  Torsten

-- 
Torsten Rohlfing, PhD          SRI International, Neuroscience Program
 Research Scientist             333 Ravenswood Ave, Menlo Park, CA 94025
  Phone: ++1 (650) 859-3379      Fax: ++1 (650) 859-2743
   torsten at synapse.sri.com        http://www.stanford.edu/~rohlfing/

     "Though this be madness, yet there is a method in't"



More information about the Insight-developers mailing list