<div dir="ltr">So I tried what Chris suggested and got this error<div><br></div><div>errDesc = 0x000000000a708ff0 &quot;itk::ERROR: TransformFileWriter(000000000A704480): Can&#39;t Create IO object for file C:\test.tfm&quot;<br>
</div><div><br></div><div style>My code snippet is </div><div style><br></div><div style>transform-&gt;SetParameters( finalParameters );<br><br>try 
{<br>itk::TransformFileWriter::Pointer writer = 
itk::TransformFileWriter::New();<br>  writer-&gt;SetInput(transform);<br>  
writer-&gt;SetFileName(&quot;C:\\test.tfm&quot;);<br>  writer-&gt;Update();<br>}<br>catch( 
itk::ExceptionObject &amp; err ){<br>   std::cerr &lt;&lt; &quot;ITK test driver 
caught an ITK exception:\n&quot;;<br>   err.Print(std::cerr);<br>   const char* 
errDesc = err.GetDescription();<br>return (-1);<br>}<br></div><div style>Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 10:00 AM, Christopher Mullins <span dir="ltr">&lt;<a href="mailto:christopher.mullins@kitware.com" target="_blank">christopher.mullins@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I actually did exactly this in one of my projects [1].  Take a look, and let me know if this isn&#39;t what you&#39;re trying to do.  There&#39;s probably a more generic example of doing this here [2].<div>
<br>
</div><div>[1] <a href="https://github.com/chrismullins/VesselRegistration/blob/master/vesselRegistration.cxx#L98" target="_blank">https://github.com/chrismullins/VesselRegistration/blob/master/vesselRegistration.cxx#L98</a></div>
<div>[2] <a href="http://www.na-mic.org/svn/Slicer3-lib-mirrors/trunk/Insight/Examples/IO/TransformReadWrite.cxx" target="_blank">http://www.na-mic.org/svn/Slicer3-lib-mirrors/trunk/Insight/Examples/IO/TransformReadWrite.cxx</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 18, 2013 at 10:21 AM, ronn kling <span dir="ltr">&lt;<a href="mailto:ronn@rlkling.com" target="_blank">ronn@rlkling.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">All,</span><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m new to ITK, so I may be asking a simple question.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m successfully registering two volumes with VersorRigid3DTransform.  What I want to do is save the  transform to disk so that the next time I read the two volumes in I can just apply the transform and go on my merry way.  The problem is, I don&#39;t see how to do it.  My first thought was that I could save the versor and then reload it into the ResampleImageFilter, but I don&#39;t see how to do that.  </div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">If someone could point me to an example or a previous post on this list, I would appreciate it.</div>


</div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&amp;D Engineer</div><div>Kitware Inc.,</div><div><a href="tel:919.869.8871" value="+19198698871" target="_blank">919.869.8871</a></div>

</font></span></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>