Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Core
Main
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
39
class
ELASTIXLIB_API
ELASTIX
40
{
41
public
:
42
43
//typedefs for images
44
typedef
itk::DataObject
Image
;
45
typedef
Image::Pointer
ImagePointer
;
46
47
//typedefs for parameter map
48
typedef
itk::ParameterFileParser::ParameterValuesType
ParameterValuesType
;
49
typedef
itk::ParameterFileParser::ParameterMapType
ParameterMapType
;
50
typedef
std::vector< itk::ParameterFileParser::ParameterMapType >
ParameterMapListType
;
51
52
//typedefs for ObjectPointer
53
typedef
elastix::ElastixMain::ObjectPointer
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
elxElastixMain.h
elastix::ELASTIX::ObjectPointer
elastix::ElastixMain::ObjectPointer ObjectPointer
Definition:
elastixlib.h:61
ELASTIXLIB_API
#define ELASTIXLIB_API
Definition:
elxMacro.h:301
itk::ParameterFileParser::ParameterMapType
std::map< std::string, ParameterValuesType > ParameterMapType
Definition:
itkParameterFileParser.h:99
elastix::ELASTIX::ParameterMapType
itk::ParameterFileParser::ParameterMapType ParameterMapType
Definition:
elastixlib.h:57
Image
itk::ParameterFileParser::ParameterValuesType
std::vector< std::string > ParameterValuesType
Definition:
itkParameterFileParser.h:93
ConvertSecondsToDHMS
std::string ConvertSecondsToDHMS(const double totalSeconds, const unsigned int precision=0)
Definition:
elastix.h:51
GetCurrentDateAndTime
std::string GetCurrentDateAndTime(void)
Definition:
elastix.h:89
elastix::ElastixMain::ObjectPointer
ObjectType::Pointer ObjectPointer
Definition:
elxElastixMain.h:118
itkParameterFileParser.h
elastix::ELASTIX::ImagePointer
Image::Pointer ImagePointer
Definition:
elastixlib.h:53
elastix::ELASTIX::ParameterValuesType
itk::ParameterFileParser::ParameterValuesType ParameterValuesType
Definition:
elastixlib.h:56
elastix::ELASTIX::ParameterMapListType
std::vector< itk::ParameterFileParser::ParameterMapType > ParameterMapListType
Definition:
elastixlib.h:58
elxMacro.h
elastix
Definition:
elxFixedGenericPyramid.h:25
elastix::ELASTIX
Definition:
elastixlib.h:44
Generated on OURCE_DATE_EPOCH for elastix by
1.8.18