From: delmon Date: Thu, 14 Apr 2011 08:12:41 +0000 (+0000) Subject: itkv4 migration: X-Git-Tag: v1.2.0~44 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bf825658276640209b8eb9c3e237e49e50b93579;p=clitk.git itkv4 migration: + itk::ImageIOFactory seems to work differently and does not need to RegisterBuiltInFactories any more. --- diff --git a/common/clitkIO.cxx b/common/clitkIO.cxx index edc10f2..1d8a57a 100755 --- a/common/clitkIO.cxx +++ b/common/clitkIO.cxx @@ -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();