<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello, I am trying to run the code bellow from my application
(using ITK 4.9) but I get the following error :</p>
<pre style="margin: 0px; padding: 15px; border-width: 0px 0px 0px 1px; border-left-style: solid; border-left-color: rgb(229, 229, 229); outline: 0px; font-size: 13px; vertical-align: baseline; font-family: monospace, sans-serif; white-space: pre-wrap; word-wrap: break-word; overflow: auto; color: rgb(85, 85, 85); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: rgb(255, 255, 255);">ERROR: Caught exception: itk::ERROR:
TransformFileWriterTemplate(000000000CD770E0): Can't Create IO object
for file test.tfm</pre>
<p>I am sure that if I test it from a simple test application this
should work, but I am trying to understand what I am missing from
within my project (maybe some factory not yet registered or even
some registration-related module not yet enabled in cmake?)<br>
</p>
<p>typedef itk::VersorRigid3DTransform< double >
TransformType;<br>
TransformType::Pointer trf = TransformType::New();<br>
trf->SetIdentity();<br>
<br>
itk::TransformFileWriterTemplate<double>::Pointer writer =<br>
itk::TransformFileWriterTemplate<double>::New();<br>
<br>
writer->SetFileName("test.tfm");<br>
writer->SetInput(trf);<br>
<br>
try<br>
{<br>
writer->Update();<br>
}<br>
catch (itk::ExceptionObject& e)<br>
{<br>
std::cerr << "Caught exception: " <<
e.GetDescription() << std::endl;<br>
}<br>
</p>
</body>
</html>