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  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __transformixlib_h
19 #define __transformixlib_h
20 
24 #include <itkDataObject.h>
25 #include "itkParameterFileParser.h"
26 
27 /********************************************************************************
28  * *
29  * Dll export *
30  * *
31  ********************************************************************************/
32 #if ( defined( _WIN32 ) || defined( WIN32 ) )
33 # ifdef _ELASTIX_BUILD_LIBRARY
34 # ifdef _ELASTIX_BUILD_SHARED_LIBRARY
35 # define TRANSFORMIXLIB_API __declspec( dllexport )
36 # else
37 # define TRANSFORMIXLIB_API __declspec( dllimport )
38 # endif
39 # else
40 # define TRANSFORMIXLIB_API __declspec( dllexport )
41 # endif
42 #else
43 # if __GNUC__ >= 4
44 # define TRANSFORMIXLIB_API __attribute__ ( ( visibility( "default" ) ) )
45 # else
46 # define TRANSFORMIXLIB_API
47 # endif
48 #endif
49 
50 /********************************************************************************
51  * *
52  * Class definition *
53  * *
54  ********************************************************************************/
55 namespace transformix
56 {
57 
59 {
60 public:
61 
62  //typedefs for images
63  typedef itk::DataObject Image;
64  typedef Image::Pointer ImagePointer;
65 
66  //typedefs for parameter map
69  typedef std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType;
70 
72  TRANSFORMIX();
73  virtual ~TRANSFORMIX();
74 
80  int TransformImage( ImagePointer inputImage,
81  ParameterMapType & parameterMap,
82  std::string outputPath,
83  bool performLogging,
84  bool performCout );
85 
91  int TransformImage( ImagePointer inputImage,
92  std::vector< ParameterMapType > & parameterMaps,
93  std::string outputPath,
94  bool performLogging,
95  bool performCout );
96 
98  ImagePointer GetResultImage( void );
99 
100 private:
101 
102  ImagePointer m_ResultImage;
103 
104 };
105 
106 // end class TRANSFORMIX
107 
108 } // namespace transformix
109 
110 #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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo