go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
transformixlib.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
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 above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __transformixlib_h
15 #define __transformixlib_h
16 
20 #include <itkDataObject.h>
21 #include "itkParameterFileParser.h"
22 
23 /********************************************************************************
24  * *
25  * Dll export *
26  * *
27  ********************************************************************************/
28 #if ( defined( _WIN32 ) || defined( WIN32 ) )
29 # ifdef _ELASTIX_BUILD_LIBRARY
30 # ifdef _ELASTIX_BUILD_SHARED_LIBRARY
31 # define TRANSFORMIXLIB_API __declspec( dllexport )
32 # else
33 # define TRANSFORMIXLIB_API __declspec( dllimport )
34 # endif
35 # else
36 # define TRANSFORMIXLIB_API __declspec( dllexport )
37 # endif
38 #else
39 # if __GNUC__ >= 4
40 # define TRANSFORMIXLIB_API __attribute__ ( ( visibility( "default" ) ) )
41 # else
42 # define TRANSFORMIXLIB_API
43 # endif
44 #endif
45 
46 /********************************************************************************
47  * *
48  * Class definition *
49  * *
50  ********************************************************************************/
51 namespace transformix
52 {
53 
55 {
56 public:
57 
58  //typedefs for images
59  typedef itk::DataObject Image;
60  typedef Image::Pointer ImagePointer;
61 
62  //typedefs for parameter map
65  typedef std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType;
66 
68  TRANSFORMIX();
69  virtual ~TRANSFORMIX();
70 
76  int TransformImage( ImagePointer inputImage,
77  ParameterMapType & parameterMap,
78  std::string outputPath,
79  bool performLogging,
80  bool performCout );
81 
87  int TransformImage( ImagePointer inputImage,
88  std::vector< ParameterMapType > & parameterMaps,
89  std::string outputPath,
90  bool performLogging,
91  bool performCout );
92 
94  ImagePointer GetResultImage( void );
95 
96 private:
97 
99 
100 };
101 
102 // end class TRANSFORMIX
103 
104 } // namespace transformix
105 
106 #endif // end #ifndef __transformixlib_h
std::map< std::string, ParameterValuesType > ParameterMapType
std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType
itk::ParameterFileParser::ParameterValuesType ParameterValuesType
Image::Pointer ImagePointer
#define TRANSFORMIXLIB_API
std::vector< std::string > ParameterValuesType
itk::ParameterFileParser::ParameterMapType ParameterMapType


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo