]> Creatis software - clitk.git/blob - common/clitkIO.cxx
79aa9584cd8489de6645040901c41ddedf9d2d7e
[clitk.git] / common / clitkIO.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to:
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 // std include
20 #include <iostream>
21 #include <fstream>
22
23 // itk include
24 #include "itkMacro.h"
25
26 // clitk include
27 #include "clitkIO.h"
28 #include "clitkImageCommon.h"
29 #include "clitkDicomRTDoseIOFactory.h"
30 #include "clitkVoxImageIOFactory.h"
31 #include "clitkHisImageIOFactory.h"
32 #include "clitkVfImageIOFactory.h"
33 #include "clitkXdrImageIOFactory.h"
34 #include "clitkHndImageIOFactory.h"
35 #include "clitkGateAsciiImageIOFactory.h"
36 #include "clitkConfiguration.h"
37 #if CLITK_PRIVATE_FEATURES
38   #include "clitkUsfImageIOFactory.h"
39   #include "clitkUSVoxImageIOFactory.h"
40   #include "clitkSvlImageIOFactory.h"
41 #endif
42
43 //--------------------------------------------------------------------
44 // Register factories
45 void clitk::RegisterClitkFactories()
46 {
47 #if CLITK_PRIVATE_FEATURES
48   clitk::UsfImageIOFactory::RegisterOneFactory();
49   clitk::USVoxImageIOFactory::RegisterOneFactory();
50   clitk::SvlImageIOFactory::RegisterOneFactory();
51 #endif
52   clitk::GateAsciiImageIOFactory::RegisterOneFactory();
53   clitk::DicomRTDoseIOFactory::RegisterOneFactory();
54 #if ITK_VERSION_MAJOR <= 3
55   itk::ImageIOFactory::RegisterBuiltInFactories();
56 #endif
57   clitk::VoxImageIOFactory::RegisterOneFactory();
58   clitk::VfImageIOFactory::RegisterOneFactory();
59   clitk::HisImageIOFactory::RegisterOneFactory();
60   clitk::XdrImageIOFactory::RegisterOneFactory();
61   clitk::HndImageIOFactory::RegisterOneFactory();
62 } ////
63