<div dir="ltr"><div>Folks,<br><br></div>When I compile the following code I get this compilation error:<br><br>/home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx: In function ‘int main(int, char**)’:<br>
/home/lorensen/ProjectsGIT/ITKGerrit/Modules/Remote/WikiExamples/IO/TransformFileWriter.cxx:20: error: no matching function for call to ‘itk::TransformFileWriterTemplate&lt;double&gt;::SetInput(itk::SmartPointer&lt;itk::Rigid2DTransform&lt;float&gt; &gt;&amp;)’<br>
/home/lorensen/ProjectsGIT/ITKGerrit/Modules/IO/TransformBase/include/itkTransformFileWriter.hxx:78: note: candidates are: void itk::TransformFileWriterTemplate&lt;ScalarType&gt;::SetInput(const itk::TransformBaseTemplate&lt;TScalarType&gt;*) [with ScalarType = double]<br>
<br>---------------------------------------------------------------------------------------------------<br>#include &quot;itkRigid2DTransform.h&quot;<br>#include &quot;itkTransformFileWriter.h&quot;<br><br>int main(int argc, char *argv[])<br>
{<br>  std::string fileName;<br>  if(argc == 1) // No arguments were provided<br>  {<br>    fileName = &quot;test.tfm&quot;;<br>  }<br>  else<br>  {<br>    fileName = argv[1];<br>  }<br><br>  typedef itk::Rigid2DTransform&lt; float &gt; TransformType;<br>
  TransformType::Pointer transform = TransformType::New();<br><br>  itk::TransformFileWriter::Pointer writer = itk::TransformFileWriter::New();<br>  writer-&gt;SetInput(transform);<br>  writer-&gt;SetFileName(fileName);<br>
  writer-&gt;Update();<br><br>  return EXIT_SUCCESS;<br>}<br><br></div>