<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"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></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 <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> Folks,<br>
><br>
> When I compile the following code I get this compilation error:<br>
><br>
> /home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx:<br>
> In function ‘int main(int, char**)’:<br>
> /home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx:20:<br>
> error: no matching function for call to<br>
> ‘itk::TransformFileWriterTemplate<double>::SetInput(itk::SmartPointer<itk::Rigid2DTransform<float><br>
>>&)’<br>
> /home/lorensen/ProjectsGIT/ITKGerrit/Modules/IO/TransformBase/include/itkTransformFileWriter.hxx:78:<br>
> note: candidates are: void<br>
> itk::TransformFileWriterTemplate<ScalarType>::SetInput(const<br>
> itk::TransformBaseTemplate<TScalarType>*) [with ScalarType = double]<br>
><br>
> ---------------------------------------------------------------------------------------------------<br>
> #include "itkRigid2DTransform.h"<br>
> #include "itkTransformFileWriter.h"<br>
><br>
> int main(int argc, char *argv[])<br>
> {<br>
> std::string fileName;<br>
> if(argc == 1) // No arguments were provided<br>
> {<br>
> fileName = "test.tfm";<br>
> }<br>
> else<br>
> {<br>
> fileName = argv[1];<br>
> }<br>
><br>
> typedef itk::Rigid2DTransform< float > TransformType;<br>
> TransformType::Pointer transform = TransformType::New();<br>
><br>
> itk::TransformFileWriter::Pointer writer =<br>
> itk::TransformFileWriter::New();<br>
> writer->SetInput(transform);<br>
> writer->SetFileName(fileName);<br>
> writer->Update();<br>
><br>
> return EXIT_SUCCESS;<br>
> }<br>
><br>
><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://kitware.com/products/protraining.php" target="_blank">http://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-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>