<div dir="ltr">I think it works with 4.5.0(~ May 31). Probably fails because of this commit:<br><a href="http://review.source.kitware.com/#/c/11396/">http://review.source.kitware.com/#/c/11396/</a><br><br><br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 11:40 AM, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@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">
Hi Bill,<br>
<br>
Did this code with 4.4.0?<br>
<br>
Thanks,<br>
Matt<br>
<div><div class="h5"><br>
On Sun, Jul 14, 2013 at 11:31 AM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br>
&gt; Folks,<br>
&gt;<br>
&gt; When I compile the following code I get this compilation error:<br>
&gt;<br>
&gt; /home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx:<br>
&gt; In function ‘int main(int, char**)’:<br>
&gt; /home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx:20:<br>
&gt; error: no matching function for call to<br>
&gt; ‘itk::TransformFileWriterTemplate&lt;double&gt;::SetInput(itk::SmartPointer&lt;itk::Rigid2DTransform&lt;float&gt;<br>
&gt;&gt;&amp;)’<br>
&gt; /home/lorensen/ProjectsGIT/ITKGerrit/Modules/IO/TransformBase/include/itkTransformFileWriter.hxx:78:<br>
&gt; note: candidates are: void<br>
&gt; itk::TransformFileWriterTemplate&lt;ScalarType&gt;::SetInput(const<br>
&gt; itk::TransformBaseTemplate&lt;TScalarType&gt;*) [with ScalarType = double]<br>
&gt;<br>
&gt; ---------------------------------------------------------------------------------------------------<br>
&gt; #include &quot;itkRigid2DTransform.h&quot;<br>
&gt; #include &quot;itkTransformFileWriter.h&quot;<br>
&gt;<br>
&gt; int main(int argc, char *argv[])<br>
&gt; {<br>
&gt;   std::string fileName;<br>
&gt;   if(argc == 1) // No arguments were provided<br>
&gt;   {<br>
&gt;     fileName = &quot;test.tfm&quot;;<br>
&gt;   }<br>
&gt;   else<br>
&gt;   {<br>
&gt;     fileName = argv[1];<br>
&gt;   }<br>
&gt;<br>
&gt;   typedef itk::Rigid2DTransform&lt; float &gt; TransformType;<br>
&gt;   TransformType::Pointer transform = TransformType::New();<br>
&gt;<br>
&gt;   itk::TransformFileWriter::Pointer writer =<br>
&gt; itk::TransformFileWriter::New();<br>
&gt;   writer-&gt;SetInput(transform);<br>
&gt;   writer-&gt;SetFileName(fileName);<br>
&gt;   writer-&gt;Update();<br>
&gt;<br>
&gt;   return EXIT_SUCCESS;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>