[Insight-users] ImageToImageFilter Input/output with differen t dimension ?

Miller, James V (Research) millerjv at crd.ge.com
Tue Jan 18 08:58:47 EST 2005


Changing dimensions from input to output is possible.  One example
is the ExtractImageFilter which will allow you to extract a
subvolume from a volume (maintaining the dimension) as well as
extract a slice from a volume (decreasing the dimension).

An example to go up a dimension from input to output is the TileImageFilter.

When you go down a dimension from input to output (as in the
ExtractImageFilter)
you need to provide methods to "copy" the region meta data.  The default
method from ImageToImageFilter does a naive copy (padding and throwing
out dimensions as necessary). To do something more general, like
ExtractImageFilter does where you specify which dimensions to keep, 
you will need to override the CallCopyOutputRegionToInputRegion() method.

Take a look at ImageToImageFilter and ExtractImageFilter to see how these
methods work.

Jim



-----Original Message-----
From: Lagaffe [mailto:lagaffe74130 at yahoo.fr]
Sent: Saturday, January 15, 2005 11:44 AM
To: ITK mailing
Subject: [Insight-users] ImageToImageFilter Input/output with different
dimension ?


Hello,
Is it possible to extend an ImageToImageFilter with a
TInputImage with Dimension N and a TOutputImage with
Dimension M.
I did a test and it failed, so is there another class
to extend to build such kind of filter ...
thanks for help
lagaffe


	

	
		
Decouvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos
mails ! 
Creez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list