[Insight-developers] Insight Journal and ITK v4
Nicholas Tustison
ntustison at gmail.com
Tue Dec 4 17:01:42 EST 2012
Hi Tom,
You might be interested in the image registration framework
would should accommodate diff. demons more easily than
the old framework. In fact, we "pilfered" your itkExponential
DisplacementImageFilter to use in the constant velocity
field transforms:
http://www.itk.org/Doxygen/html/classitk_1_1ConstantVelocityFieldTransform.html
Don't hesitate to ask Brian, Michael, myself, or anybody else
for further advice if you'd like to pursue any contribution to
ITKv4's registration.
Nick
On Dec 4, 2012, at 4:45 PM, Tom Vercauteren <tom.vercauteren at m4x.org> wrote:
> Hi folks,
>
> I unfortunately have almost no time anymore to contribute to ITK. Yet,
> I wanted to start fiddling with ITK 4 (I know it has been out for
> quite some time already...) by cleaning up an old submission of mine
> that needs some TLC to compile seamlessly with ITK 3 and 4:
> http://hdl.handle.net/1926/510
>
> I was happy to see that the code is now on github
> https://github.com/midas-journal/midas-journal-154
> but I could not find anywhere in the Insight Journal documentation
> whether (and how) I could use this repository to update the
> submission.
>
> Then I started without any porting effort to compile my old code with
> ITK 4. I did not want to rely on any ITKv3Support mechanism as I
> didn't want my code not to be native ITK4 in the end (I still have bad
> memories about relying on Qt3Support a few years ago).
>
> I first stumbled into a compilation error in ImageCompare.cxx:
> #error For ITKv4 compatibility, use
> itk::Testing::ComparisonImageFilter instead of
> itk::DifferenceImageFilter
>
> Remembering that ImageCompare was part of the Insight Journal template
> package, I went back and re-downloaded the template package.
> Unfortunately, the template package has not been ported to ITK4 yet
> and the ImageCompare.cxx file is still the same as the old one I had.
>
> I could of course patch my local Insight Journal Template Package as
> well as my other files and when everything will work fine, I could
> also upload a new source package to the Insight Journal rather than
> using github but this doesn't sound quite right. Did I miss something
> or is it simply that the Insight Journal also needs some TLC to
> properly handle ITK4?
>
> That being said, are there any suggestions to handle seamlessly ITK 3
> and 4 without imposition the use of ITKv3Support. I can see two
> options right now:
> 1) Pepper the code with #if ITK_VERSION
> 2) Have two distinct files, one for ITK3, one for ITK4 and let cmake
> choose which one to compile
>
> Sorry for the long email and thanks for all the efforts that have been
> made for ITK4 already.
>
> Tom
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list