<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-size: 14px;"><div style="font-size: medium;"><font face="Times">Hi,</font></div><div style="font-size: medium;"><font face="Times"><br></font></div><div style="font-size: medium;"><font face="Times">In the transform reader/writer classes, the template argument reflects the </font><span style="font-family: Times;">"desired" output precision type for the input to the filter.</span></div><div style="font-size: medium;"><font face="Times"><br></font></div><div style="font-size: medium;"><font face="Times">It means if you read your transforms by itkTransformFileReader (aka itkTransforFileReaderTemplate<double>),</font></div><div style="font-size: medium;"><font face="Times">your transforms are read as double transforms no matter they were in single </font><font face="Times">or double precision. The same fact holds for the </font><span style="font-family: Times;">itkTransformFileWriterTemplate class.</span></div></div><div style="color: rgb(0, 0, 0); font-size: medium;"><span style="font-family: Times;"><br></span></div><div><font face="Times">Therefore, as one way, you can read your transforms as double and write them again to the disk as double transforms.</font></div><div style="color: rgb(0, 0, 0); font-size: medium;"><span style="font-family: Times;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: medium;"><span style="font-family: Times;">HTH,</span></div><div style="color: rgb(0, 0, 0); font-size: medium;"><span style="font-family: Times;">Ali</span></div><div style="color: rgb(0, 0, 0); font-size: medium; font-family: Consolas;"><br></div><div style="color: rgb(0, 0, 0); font-size: medium; font-family: Consolas;"><br></div><div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><br></div><span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Emma Saunders <<a href="mailto:emmasaunders123@gmail.com">emmasaunders123@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Thursday, April 3, 2014 at 9:09 AM<br><span style="font-weight:bold">To: </span> "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a> Users" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br><span style="font-weight:bold">Subject: </span> [ITK-users] convert transform from float to double<br></div><div><br></div><div dir="ltr">Hi All<div><br></div><div style="">Does anyone know how I would go about converting a float affine and displacement transform into double format?</div><div style=""><br></div><div style="">Many thanks</div><div style=""><br></div><div style="">Emma</div></div>
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</span></body></html>