1 #ifndef sitkelastiximagefilterimpl_h
2 #define sitkelastiximagefilterimpl_h
10 #include "itkElastixRegistrationMethod.h"
11 #include "elxParameterObject.h"
19 ElastixImageFilterImpl(
void);
20 ~ElastixImageFilterImpl(
void);
22 typedef ElastixImageFilterImpl
Self;
42 SetFixedImage(
const Image & fixedImage);
46 AddFixedImage(
const Image & fixedImage);
48 GetFixedImage(
const unsigned long index);
52 RemoveFixedImage(
const unsigned long index);
54 RemoveFixedImage(
void);
56 GetNumberOfFixedImages();
59 SetMovingImage(
const Image & movingImages);
63 AddMovingImage(
const Image & movingImage);
65 GetMovingImage(
const unsigned long index);
69 RemoveMovingImage(
const unsigned long index);
71 RemoveMovingImage(
void);
73 GetNumberOfMovingImages();
76 SetFixedMask(
const Image & fixedMask);
80 AddFixedMask(
const Image & fixedMask);
82 GetFixedMask(
const unsigned long index);
86 RemoveFixedMask(
const unsigned long index);
88 RemoveFixedMask(
void);
90 GetNumberOfFixedMasks();
93 SetMovingMask(
const Image & movingMask);
97 AddMovingMask(
const Image & movingMask);
99 GetMovingMask(
const unsigned long index);
103 RemoveMovingMask(
const unsigned long index);
105 RemoveMovingMask(
void);
107 GetNumberOfMovingMasks();
110 SetFixedPointSetFileName(
const std::string movingPointSetFileName);
112 GetFixedPointSetFileName(
void);
114 RemoveFixedPointSetFileName(
void);
117 SetMovingPointSetFileName(
const std::string movingPointSetFileName);
119 GetMovingPointSetFileName(
void);
121 RemoveMovingPointSetFileName(
void);
124 SetOutputDirectory(
const std::string outputDirectory);
126 GetOutputDirectory(
void);
128 RemoveOutputDirectory(
void);
131 SetLogFileName(
const std::string logFileName);
133 GetLogFileName(
void);
135 RemoveLogFileName(
void);
138 SetLogToFile(
const bool logToFile);
147 SetLogToConsole(
bool);
149 GetLogToConsole(
void);
156 SetNumberOfThreads(
int n);
158 GetNumberOfThreads(
void);
161 SetParameterMap(
const std::string transformName,
162 const unsigned int numberOfResolutions = 4u,
163 const double finalGridSpacingInPhysicalUnits = 10.0);
165 SetParameterMap(
const std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector);
167 SetParameterMap(
const std::map<std::string, std::vector<std::string>> parameterMap);
169 AddParameterMap(
const std::map<std::string, std::vector<std::string>> parameterMap);
170 std::vector<std::map<std::string, std::vector<std::string>>>
171 GetParameterMap(
void);
172 std::map<std::string, std::vector<std::string>>
174 const unsigned int numberOfResolutions = 4,
175 const double finalGridSpacingInPhysicalUnits = 10.0);
177 GetNumberOfParameterMaps(
void);
180 SetParameter(
const std::string key,
const std::string value);
182 SetParameter(
const std::string key,
const std::vector<std::string> value);
184 SetParameter(
const unsigned int index,
const std::string key,
const std::string value);
186 SetParameter(
const unsigned int index,
const std::string key,
const std::vector<std::string> value);
188 AddParameter(
const std::string key,
const std::string value);
190 AddParameter(
const unsigned int index,
const std::string key,
const std::string value);
192 AddParameter(
const std::string key,
const std::vector<std::string> value);
194 AddParameter(
const unsigned int index,
const std::string key,
const std::vector<std::string> value);
195 std::vector<std::string>
196 GetParameter(
const std::string key);
197 std::vector<std::string>
198 GetParameter(
const unsigned int index,
const std::string key);
200 RemoveParameter(
const std::string key);
202 RemoveParameter(
const unsigned int index,
const std::string key);
205 SetInitialTransformParameterFileName(
const std::string initialTransformParmaterFileName);
207 GetInitialTransformParameterFileName(
void);
209 RemoveInitialTransformParameterFileName(
void);
211 std::map<std::string, std::vector<std::string>>
214 WriteParameterFile(
const std::map<std::string, std::vector<std::string>> parameterMap,
const std::string filename);
218 std::vector<std::map<std::string, std::vector<std::string>>>
219 GetTransformParameterMap(
void);
220 std::map<std::string, std::vector<std::string>>
221 GetTransformParameterMap(
const unsigned int index);
223 GetResultImage(
void);
233 IsEmpty(
const Image & image);
237 template <
class TFixedImage,
class TMovingImage>
239 DualExecuteInternal(
void);
267 #endif // sitkelastiximagefilterimpl_h