[Insight-users] Image mapper base

Gavin Baker gavinb@cs.mu.OZ.AU
Wed, 26 Mar 2003 19:16:06 +1100


Hello,

I have read the Software Guide (thanks Luis!), and in particular
Chapter 10 on creating new filters.  It mentions the different types
of filters, etc.  But I am still not clear on a few things...

I am writing a filter that takes an Image as input, and runs some
calculations over it (using an internal pipeline).  The results are
some parameters (ie. GetSigma()), but no output (ie. it terminates the
pipeline).  There doesn't seem to be a base class for such a filter
(ie. that isn't an ImageSource).

In a simple little attempt to solve this problem myself, I have
written itk::ImageMapperBase, which is basically just the
ImageToImageFilter with the ImageSource and the CopyRegion stuff
removed.  It seems to work ok.  Have I missed anything?  Does that
sound reasonable; ie. fit into the grand design?  If so, I will submit
the files (once I've tested a bit more!).

Also, at the start of Ch 10, it says: "The mapper has one or more
outputs"... shouldn't that be inputs?

Thanks,

  :: Gavin

-- 
Gavin Baker                                Computer Vision Lab (CVMIL)
http://www.cs.mu.oz.au/~gavinb                 University of Melbourne