<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div style="">I think I did this already?</div>
<div style=""><br>
</div>
<div style=""><span style="font-family:'.HelveticaNeueUI'; font-size:15px; line-height:19px; white-space:nowrap"><a href="https://github.com/BRAINSia/LogSymmetricDemons">https://github.com/BRAINSia/LogSymmetricDemons</a></span></div>
<div><font face=".HelveticaNeueUI"><span style="font-size:15px; line-height:19px; white-space:nowrap"><br>
</span></font></div>
<div><font face=".HelveticaNeueUI"><span style="font-size:15px; line-height:19px; white-space:nowrap"><br>
</span></font><br>
<span style="">Sent from my iPhone</span></div>
<div style=""><br>
On Dec 4, 2012, at 3:52 PM, "Tom Vercauteren" <<a href="mailto:tom.vercauteren@m4x.org">tom.vercauteren@m4x.org</a>> wrote:<br>
<br>
</div>
<blockquote type="cite" style="">
<div><span>Hi folks,</span><br>
<span></span><br>
<span>I unfortunately have almost no time anymore to contribute to ITK. Yet,</span><br>
<span>I wanted to start fiddling with ITK 4 (I know it has been out for</span><br>
<span>quite some time already...) by cleaning up an old submission of mine</span><br>
<span>that needs some TLC to compile seamlessly with ITK 3 and 4:</span><br>
<span><a href="http://hdl.handle.net/1926/510">http://hdl.handle.net/1926/510</a></span><br>
<span></span><br>
<span>I was happy to see that the code is now on github</span><br>
<span> <a href="https://github.com/midas-journal/midas-journal-154">https://github.com/midas-journal/midas-journal-154</a></span><br>
<span>but I could not find anywhere in the Insight Journal documentation</span><br>
<span>whether (and how) I could use this repository to update the</span><br>
<span>submission.</span><br>
<span></span><br>
<span>Then I started without any porting effort to compile my old code with</span><br>
<span>ITK 4. I did not want to rely on any ITKv3Support mechanism as I</span><br>
<span>didn't want my code not to be native ITK4 in the end (I still have bad</span><br>
<span>memories about relying on Qt3Support a few years ago).</span><br>
<span></span><br>
<span>I first stumbled into a compilation error in ImageCompare.cxx:</span><br>
<span> #error For ITKv4 compatibility, use</span><br>
<span>itk::Testing::ComparisonImageFilter instead of</span><br>
<span>itk::DifferenceImageFilter</span><br>
<span></span><br>
<span>Remembering that ImageCompare was part of the Insight Journal template</span><br>
<span>package, I went back and re-downloaded the template package.</span><br>
<span>Unfortunately, the template package has not been ported to ITK4 yet</span><br>
<span>and the ImageCompare.cxx file is still the same as the old one I had.</span><br>
<span></span><br>
<span>I could of course patch my local Insight Journal Template Package as</span><br>
<span>well as my other files and when everything will work fine, I could</span><br>
<span>also upload a new source package to the Insight Journal rather than</span><br>
<span>using github but this doesn't sound quite right. Did I miss something</span><br>
<span>or is it simply that the Insight Journal also needs some TLC to</span><br>
<span>properly handle ITK4?</span><br>
<span></span><br>
<span>That being said, are there any suggestions to handle seamlessly ITK 3</span><br>
<span>and 4 without imposition the use of ITKv3Support. I can see two</span><br>
<span>options right now:</span><br>
<span>1) Pepper the code with #if ITK_VERSION</span><br>
<span>2) Have two distinct files, one for ITK3, one for ITK4 and let cmake</span><br>
<span>choose which one to compile</span><br>
<span></span><br>
<span>Sorry for the long email and thanks for all the efforts that have been</span><br>
<span>made for ITK4 already.</span><br>
<span></span><br>
<span>Tom</span><br>
<span>_______________________________________________</span><br>
<span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br>
<span></span><br>
<span>Visit other Kitware open-source projects at</span><br>
<span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>
<span></span><br>
<span>Kitware offers ITK Training Courses, for more information visit:</span><br>
<span><a href="http://kitware.com/products/protraining.php">http://kitware.com/products/protraining.php</a></span><br>
<span></span><br>
<span>Please keep messages on-topic and check the ITK FAQ at:</span><br>
<span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
<span></span><br>
<span>Follow this link to subscribe/unsubscribe:</span><br>
<span><a href="http://www.itk.org/mailman/listinfo/insight-developers">http://www.itk.org/mailman/listinfo/insight-developers</a></span><br>
</div>
</blockquote>
<br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any
retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
<hr>
</body>
</html>