[Insight-users] Image mapper base

Mathieu Malaterre Mathieu.Malaterre@creatis.insa-lyon.fr
Wed, 26 Mar 2003 16:38:29 +0100


Gavin,
	You are right there is a missing class: itkImageToValueFilter

	During that time you can take advantage of:

http://www.itk.org/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html

It will show you how to write such an image to value filter.

HTH
mathieu



Gavin Baker wrote:
> 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
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/