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 #include "elxMacro.h"
27 #include "elxElastixMain.h"
28 
29 
30 /********************************************************************************
31  * *
32  * Class definition *
33  * *
34  ********************************************************************************/
35 
36 namespace elastix
37 {
38 
40 {
41 public:
42 
43  //typedefs for images
44  typedef itk::DataObject Image;
45  typedef Image::Pointer ImagePointer;
46 
47  //typedefs for parameter map
50  typedef std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType;
51 
52  //typedefs for ObjectPointer
54 
58  ELASTIX();
59  virtual ~ELASTIX();
60 
86  int RegisterImages( ImagePointer fixedImage,
87  ImagePointer movingImage,
88  ParameterMapType & parameterMap,
89  std::string outputPath,
90  bool performLogging,
91  bool performCout,
92  ImagePointer fixedMask = 0,
93  ImagePointer movingMask = 0 );
94 
95  int RegisterImages( ImagePointer fixedImage,
96  ImagePointer movingImage,
97  std::vector< ParameterMapType > & parameterMaps,
98  std::string outputPath,
99  bool performLogging,
100  bool performCout,
101  ImagePointer fixedMask = 0,
102  ImagePointer movingMask = 0,
103  ObjectPointer transform = 0);
104 
106  ImagePointer GetResultImage( void );
107 
109  ParameterMapType GetTransformParameterMap( void );
110 
112  ParameterMapListType GetTransformParameterMapList( void );
113 
114  std::string ConvertSecondsToDHMS( const double totalSeconds, const unsigned int precision = 0 );
115 
116  std::string GetCurrentDateAndTime( void );
117 
118 private:
119 
120  /* the result images */
121  ImagePointer m_ResultImage;
122 
123  /* Final transformation*/
124  ParameterMapListType m_TransformParametersList;
125 
126 };
127 
128 // end class ELASTIX
129 
130 } // end namespace elastix
131 
132 #endif
std::map< std::string, ParameterValuesType > ParameterMapType
std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType
Definition: elastixlib.h:50
Image::Pointer ImagePointer
Definition: elastixlib.h:45
itk::ParameterFileParser::ParameterValuesType ParameterValuesType
Definition: elastixlib.h:48
itk::ParameterFileParser::ParameterMapType ParameterMapType
Definition: elastixlib.h:49
itk::DataObject Image
Definition: elastixlib.h:44
std::string GetCurrentDateAndTime(void)
Definition: elastix.h:89
elastix::ElastixMain::ObjectPointer ObjectPointer
Definition: elastixlib.h:53
std::string ConvertSecondsToDHMS(const double totalSeconds, const unsigned int precision=0)
Definition: elastix.h:51
ObjectType::Pointer ObjectPointer
ParameterMapListType m_TransformParametersList
Definition: elastixlib.h:124
std::vector< std::string > ParameterValuesType
ImagePointer m_ResultImage
Definition: elastixlib.h:121
#define ELASTIXLIB_API
Definition: elxMacro.h:301


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo