<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I am planning to save SimpleITK spatial transforms into a HDF5 file, as image attributes. </div><div class=""><br class=""></div><div class="">I have divided the transform into three arguments:</div><div class=""><br class=""></div><div class="">1. <i class="">params</i> =  transform.GetParameters() </div><div class="">2. <i class="">fixed_params</i> = transform.GetFixedParameters()</div><div class="">3. <i class="">t</i><i class="">ransform_</i><i class="">type</i> = an integer based on the TransformEnum </div><div class=""><br class=""></div><div class="">I tried to rebuild the transform from those parameters using the constructor: </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">itk::simple::Transform::Transform <span class="Apple-tab-span" style="white-space: pre;">    </span>(unsigned int <span class="Apple-tab-span" style="white-space: pre;">       </span>dimensions, TransformEnum <span class="Apple-tab-span" style="white-space: pre;">      </span>type)</blockquote></div><div class=""><br class=""></div><div class="">and then setting the fixed and moving parameters. This appears to work fine.</div><div class=""><br class=""></div><div class="">There are a couple of small problems however:</div><div class=""><br class=""></div><div class="">1. In the itk::simple::Transform Class Reference it is written that the said constructor is Deprecated. What would be the up-to-date method for constructing a specific Transform?</div><div class=""><br class=""></div><div class="">2. Is there a way of extracting the type of a Transform from an existing spatial transform? I tried transform.GetName() and type(transform).__name__, but both produce â€˜Transform’, instead of the specific transform Name.</div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">Sami</div><div class=""> </div></body></html>