go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elastixlib.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 __elastixlib_h
19 #define __elastixlib_h
20 
21 /*
22  * Includes
23  */
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 ELASTIXLIB_API __declspec( dllexport )
36 # else
37 # define ELASTIXLIB_API __declspec( dllimport )
38 # endif
39 # else
40 # define ELASTIXLIB_API __declspec( dllexport )
41 # endif
42 #else
43 # if __GNUC__ >= 4
44 # define ELASTIXLIB_API __attribute__ ( ( visibility( "default" ) ) )
45 # else
46 # define ELASTIXLIB_API
47 # endif
48 #endif
49 
50 /********************************************************************************
51  * *
52  * Class definition *
53  * *
54  ********************************************************************************/
55 
56 namespace elastix
57 {
58 
60 {
61 public:
62 
63  //typedefs for images
64  typedef itk::DataObject Image;
65  typedef Image::Pointer ImagePointer;
66 
67  //typedefs for parameter map
70  typedef std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType;
71 
75  ELASTIX();
76  virtual ~ELASTIX();
77 
103  int RegisterImages( ImagePointer fixedImage,
104  ImagePointer movingImage,
105  ParameterMapType & parameterMap,
106  std::string outputPath,
107  bool performLogging,
108  bool performCout,
109  ImagePointer fixedMask = 0,
110  ImagePointer movingMask = 0 );
111 
112  int RegisterImages( ImagePointer fixedImage,
113  ImagePointer movingImage,
114  std::vector< ParameterMapType > & parameterMaps,
115  std::string outputPath,
116  bool performLogging,
117  bool performCout,
118  ImagePointer fixedMask = 0,
119  ImagePointer movingMask = 0 );
120 
122  ImagePointer GetResultImage( void );
123 
125  ParameterMapType GetTransformParameterMap( void );
126 
128  ParameterMapListType GetTransformParameterMapList( void );
129 
130 private:
131 
132  /* the result images */
133  ImagePointer m_ResultImage;
134 
135  /* Final transformation*/
136  ParameterMapListType m_TransformParametersList;
137 
138 };
139 
140 // end class ELASTIX
141 
142 } // end namespace elastix
143 
144 #endif
std::map< std::string, ParameterValuesType > ParameterMapType
std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType
Definition: elastixlib.h:70
Image::Pointer ImagePointer
Definition: elastixlib.h:65
itk::ParameterFileParser::ParameterValuesType ParameterValuesType
Definition: elastixlib.h:68
itk::ParameterFileParser::ParameterMapType ParameterMapType
Definition: elastixlib.h:69
itk::DataObject Image
Definition: elastixlib.h:64
ParameterMapListType m_TransformParametersList
Definition: elastixlib.h:136
#define ELASTIXLIB_API
Definition: elastixlib.h:46
std::vector< std::string > ParameterValuesType
ImagePointer m_ResultImage
Definition: elastixlib.h:133


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo