[Insight-developers] FW: Creating new transform IO

Magnotta, Vincent A vincent-magnotta at uiowa.edu
Tue Nov 16 23:16:23 EST 2010


Michael,

In general the transform IO should support all transform types. They just need to described completely by the FixedParameters and Parameters. If you want to support another type of transform format then you will need to define your own classes to support the IO. The Factory methods provide the most flexibility and respond to the filename extension (Matlab=.mat and Text=.txt).

Vince


----------------------
Associate Professor 
Department of Radiology 
0453-D JCP 
200 Hawkins Drive 
Iowa City, IA 52242 
E-mail: vincent-magnotta at uiowa.edu 
Phone: 319-356-8255 Fax: 319-353-6275 
Website: http://www.radiology.uiowa.edu 



-----Original Message-----
From: insight-developers-bounces at itk.org on behalf of Michael Stauffer (Circular Logic)
Sent: Tue 11/16/2010 7:24 PM
To: ITK-dev-list
Subject: [Insight-developers] FW: Creating new transform IO
 
Hi again,

Sorry, I see now that the read/write is done via separate TransformIO
classes, e.g. itkMatlabTransformIO. But overall, it seems the new
"WithFactory" method is the way to go?

Cheers,
Michael 

>-----Original Message-----
>From: Michael Stauffer (Circular Logic) [mailto:mstauff at verizon.net] 
>Sent: Tuesday, November 16, 2010 8:07 PM
>To: ITK-dev-list (insight-developers at itk.org)
>Subject: Creating new transform IO
>
>ITK 4
>Hi,
>
>I need to add IO for a couple new transform classes that don't 
>have conventional members. The older code looks hardcoded for 
>just the basic transform members. 
>
>Should I use 
>Code/Review/itkTransformFile[Reader|Writer]WithFactory? How do 
>I do this? Looking at itkMatlabTransformIOFactory and 
>itkTxtTransformIOFactory, I don't see how to override a Read 
>or Write routine, or similar. Is there any documentation on 
>this apart from the source files? Thanks.
>
>Cheers,
>Michael

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101116/06ead973/attachment-0001.htm>


More information about the Insight-developers mailing list