[Insight-developers] Composite Transform -- how to copy?
M Stauffer (V)
mstauff at verizon.net
Tue Nov 8 14:12:07 EST 2011
I think there should be a method added to do this, maybe
Transform::Clone. Most transforms would be fine with the base
implementation that copies parameters and fixed parameters. Specialized
transforms would implement their own.
We could use this method for a bit of memory and speed optimization in
some new classes too.
In addition to the composite transform, the displacement field
transforms are also more complicated b/c of the options for the update
smoothing. Maybe these should be included with the fixed parameters? The
displacement field parameters/data itself can be copied simply using
SetFixedParameters and SetParameters. So it's the smoothing options that
are a sticking point here, but easy to handle either way. Not sure about
the BSplineDisplacementField transform.
-M
>-----Original Message-----
>From: insight-developers-bounces at itk.org
>[mailto:insight-developers-bounces at itk.org] On Behalf Of
>Williams, Norman K
>Sent: Tuesday, November 08, 2011 12:33 PM
>To: ITK
>Subject: [Insight-developers] Composite Transform -- how to copy?
>
>Is there a 'create a copy of a transform' method in the transform
>hierarchy?
>
>The reason I ask is that I'm trying to re-write some BRAINS code that
>reads transform files. The existing code reads the transform list, and
>then creates a new instance of the appropriate transform type,
>and fills
>it in with SetParameters and SetFixedParameters.
>
>In trying to support CompositeTransforms, Setting the parameters won't
>work at all. What it looks like I need to do is get the
>transform Queue,
>and for each transform in the queue, create a new transform
>and add it to
>my copy, and read out the 'transform-to-optimize' flags for
>each and set
>it on the new transform.
>
>This seems like a lot of work that shouldn't be replicated
>every place a
>Composite Transform needs copying.
>
>--
>Kent Williams norman-k-williams at uiowa.edu
>
>
>
>
>
>
>________________________________
>Notice: This UI Health Care e-mail (including attachments) is
>covered by the Electronic Communications Privacy Act, 18
>U.S.C. 2510-2521, is confidential and may be legally
>privileged. If you are not the intended recipient, you are
>hereby notified that any retention, dissemination,
>distribution, or copying of this communication is strictly
>prohibited. Please reply to the sender that you have received
>the message in error, then delete it. Thank you.
>________________________________
>_______________________________________________
>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
More information about the Insight-developers
mailing list