From bf825658276640209b8eb9c3e237e49e50b93579 Mon Sep 17 00:00:00 2001 From: delmon Date: Thu, 14 Apr 2011 08:12:41 +0000 Subject: [PATCH] itkv4 migration: + itk::ImageIOFactory seems to work differently and does not need to RegisterBuiltInFactories any more. --- common/clitkIO.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.47.1