]> Creatis software - clitk.git/commitdiff
itkv4 migration:
authordelmon <delmon>
Thu, 14 Apr 2011 08:12:41 +0000 (08:12 +0000)
committerdelmon <delmon>
Thu, 14 Apr 2011 08:12:41 +0000 (08:12 +0000)
  + itk::ImageIOFactory seems to work differently and does not need to
    RegisterBuiltInFactories any more.

common/clitkIO.cxx

index edc10f29952a468e0f3c3bcc741ac3ef012348f9..1d8a57afe90c0653b90309ab3db161a707fdd0ab 100755 (executable)
@@ -38,7 +38,9 @@
 void clitk::RegisterClitkFactories()
 {
   clitk::DicomRTDoseIOFactory::RegisterOneFactory();
+#if ITK_VERSION_MAJOR <= 3
   itk::ImageIOFactory::RegisterBuiltInFactories();
+#endif
   clitk::VoxImageIOFactory::RegisterOneFactory();
   clitk::VfImageIOFactory::RegisterOneFactory();
   clitk::HisImageIOFactory::RegisterOneFactory();