18 #ifndef sitkElastixImageFilter_h
19 #define sitkElastixImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
63 SetFixedImage(
const Image & fixedImage);
66 SITK_RETURN_SELF_TYPE_HEADER
70 SITK_RETURN_SELF_TYPE_HEADER
71 AddFixedImage(
const Image & fixedImage);
75 GetFixedImage(
const unsigned long index);
82 SITK_RETURN_SELF_TYPE_HEADER
83 RemoveFixedImage(
const unsigned long index);
86 SITK_RETURN_SELF_TYPE_HEADER
91 GetNumberOfFixedImages();
94 SITK_RETURN_SELF_TYPE_HEADER
95 SetMovingImage(
const Image & movingImages);
98 SITK_RETURN_SELF_TYPE_HEADER
102 SITK_RETURN_SELF_TYPE_HEADER
103 AddMovingImage(
const Image & movingImage);
107 GetMovingImage(
const unsigned long index);
114 SITK_RETURN_SELF_TYPE_HEADER
115 RemoveMovingImage(
const unsigned long index);
118 SITK_RETURN_SELF_TYPE_HEADER
123 GetNumberOfMovingImages();
126 SITK_RETURN_SELF_TYPE_HEADER
127 SetFixedMask(
const Image & fixedMask);
130 SITK_RETURN_SELF_TYPE_HEADER
134 SITK_RETURN_SELF_TYPE_HEADER
135 AddFixedMask(
const Image & fixedMask);
139 GetFixedMask(
const unsigned long index);
146 SITK_RETURN_SELF_TYPE_HEADER
147 RemoveFixedMask(
const unsigned long index);
150 SITK_RETURN_SELF_TYPE_HEADER
155 GetNumberOfFixedMasks();
158 SITK_RETURN_SELF_TYPE_HEADER
159 SetMovingMask(
const Image & movingMask);
162 SITK_RETURN_SELF_TYPE_HEADER
166 SITK_RETURN_SELF_TYPE_HEADER
167 AddMovingMask(
const Image & movingMask);
171 GetMovingMask(
const unsigned long index);
178 SITK_RETURN_SELF_TYPE_HEADER
179 RemoveMovingMask(
const unsigned long index);
182 SITK_RETURN_SELF_TYPE_HEADER
187 GetNumberOfMovingMasks();
190 SITK_RETURN_SELF_TYPE_HEADER
191 SetFixedPointSetFileName(
const std::string fixedPointSetFileName);
195 GetFixedPointSetFileName();
198 SITK_RETURN_SELF_TYPE_HEADER
199 RemoveFixedPointSetFileName();
202 SITK_RETURN_SELF_TYPE_HEADER
203 SetMovingPointSetFileName(
const std::string movingPointSetFileName);
207 GetMovingPointSetFileName();
210 SITK_RETURN_SELF_TYPE_HEADER
211 RemoveMovingPointSetFileName();
214 SITK_RETURN_SELF_TYPE_HEADER
215 SetOutputDirectory(
const std::string outputDirectory);
219 GetOutputDirectory();
222 SITK_RETURN_SELF_TYPE_HEADER
223 RemoveOutputDirectory();
226 SITK_RETURN_SELF_TYPE_HEADER
227 SetLogFileName(
const std::string logFileName);
234 SITK_RETURN_SELF_TYPE_HEADER
238 SITK_RETURN_SELF_TYPE_HEADER
239 SetLogToFile(
const bool logToFile);
246 SITK_RETURN_SELF_TYPE_HEADER
250 SITK_RETURN_SELF_TYPE_HEADER
254 SITK_RETURN_SELF_TYPE_HEADER
255 SetLogToConsole(
bool);
262 SITK_RETURN_SELF_TYPE_HEADER
266 SITK_RETURN_SELF_TYPE_HEADER
272 SITK_RETURN_SELF_TYPE_HEADER
273 SetNumberOfThreads(
int n);
277 GetNumberOfThreads();
281 SITK_RETURN_SELF_TYPE_HEADER
282 SetParameterMap(
const std::string transformName,
283 const unsigned int numberOfResolutions = 4u,
284 const double finalGridSpacingInPhysicalUnits = 10.0);
287 SITK_RETURN_SELF_TYPE_HEADER
288 SetParameterMap(
const std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector);
289 SITK_RETURN_SELF_TYPE_HEADER
290 SetParameterMaps(
const std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector) {
return SetParameterMap(parameterMapVector);}
293 SITK_RETURN_SELF_TYPE_HEADER
294 SetParameterMap(
const std::map<std::string, std::vector<std::string>> parameterMap);
297 SITK_RETURN_SELF_TYPE_HEADER
298 AddParameterMap(
const std::map<std::string, std::vector<std::string>> parameterMap);
301 std::vector<std::map<std::string, std::vector<std::string>>>
303 std::vector<std::map<std::string, std::vector<std::string>>>
308 std::map<std::string, std::vector<std::string>>
310 const unsigned int numberOfResolutions = 4,
311 const double finalGridSpacingInPhysicalUnits = 10.0);
315 GetNumberOfParameterMaps();
318 SITK_RETURN_SELF_TYPE_HEADER
319 SetParameter(
const std::string key,
const std::string value);
322 SITK_RETURN_SELF_TYPE_HEADER
323 SetParameter(
const std::string key,
const std::vector<std::string> value);
327 SITK_RETURN_SELF_TYPE_HEADER
328 SetParameter(
const unsigned int index,
const std::string key,
const std::string value);
332 SITK_RETURN_SELF_TYPE_HEADER
333 SetParameter(
const unsigned int index,
const std::string key,
const std::vector<std::string> value);
336 SITK_RETURN_SELF_TYPE_HEADER
337 AddParameter(
const std::string key,
const std::string value);
341 SITK_RETURN_SELF_TYPE_HEADER
342 AddParameter(
const unsigned int index,
const std::string key,
const std::string value);
345 SITK_RETURN_SELF_TYPE_HEADER
346 AddParameter(
const std::string key,
const std::vector<std::string> value);
350 SITK_RETURN_SELF_TYPE_HEADER
351 AddParameter(
const unsigned int index,
const std::string key,
const std::vector<std::string> value);
354 std::vector<std::string>
355 GetParameter(
const std::string key);
359 std::vector<std::string>
360 GetParameter(
const unsigned int index,
const std::string key);
363 SITK_RETURN_SELF_TYPE_HEADER
364 RemoveParameter(
const std::string key);
367 SITK_RETURN_SELF_TYPE_HEADER
368 RemoveParameter(
const unsigned int index,
const std::string key);
371 SITK_RETURN_SELF_TYPE_HEADER
372 SetInitialTransformParameterFileName(
const std::string initialTransformParmaterFileName);
376 GetInitialTransformParameterFileName();
379 SITK_RETURN_SELF_TYPE_HEADER
380 RemoveInitialTransformParameterFileName();
383 std::map<std::string, std::vector<std::string>>
387 SITK_RETURN_SELF_TYPE_HEADER
388 WriteParameterFile(
const std::map<std::string, std::vector<std::string>> parameterMap,
const std::string filename);
399 std::vector<std::map<std::string, std::vector<std::string>>>
400 GetTransformParameterMap();
403 std::map<std::string, std::vector<std::string>>
404 GetTransformParameterMap(
const unsigned int index);
411 SITK_RETURN_SELF_TYPE_HEADER
415 SITK_RETURN_SELF_TYPE_HEADER
419 SITK_RETURN_SELF_TYPE_HEADER
423 class ElastixImageFilterImpl;
424 const std::unique_ptr<ElastixImageFilterImpl>
m_Pimple;
430 const unsigned int numberOfResolutions = 4,
431 const double finalGridSpacingInPhysicalUnits = 8.0);
435 WriteParameterFile(
const std::map<std::string, std::vector<std::string>> parameterMap,
const std::string filename);
437 PrintParameterMap(
const std::map<std::string, std::vector<std::string>> parameterMap);
439 PrintParameterMap(
const std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector);
442 const Image & movingImage,
443 const bool logToConsole =
false,
444 const bool logToFile =
false,
445 const std::string outputDirectory =
".");
448 const Image & movingImage,
449 const Image & fixedMask,
450 const Image & movingMask,
451 const bool logToConsole =
false,
452 const bool logToFile =
false,
453 const std::string outputDirectory =
".");
456 const Image & movingImage,
457 const std::string defaultParameterMapName,
458 const bool logToConsole =
false,
459 const bool logToFile =
false,
460 const std::string outputDirectory =
".");
463 const Image & movingImage,
464 const std::map<std::string, std::vector<std::string>> parameterMap,
465 const bool logToConsole =
false,
466 const bool logToFile =
false,
467 const std::string outputDirectory =
".");
470 const Image & movingImage,
471 const std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector,
472 const bool logToConsole =
false,
473 const bool logToFile =
false,
474 const std::string outputDirectory =
".");
477 const Image & movingImage,
478 const std::string defaultParameterMapName,
479 const Image & fixedMask,
480 const Image & movingMask,
481 const bool logToConsole =
false,
482 const bool logToFile =
false,
483 const std::string outputDirectory =
".");
486 const Image & movingImage,
487 const std::map<std::string, std::vector<std::string>>,
488 const Image & fixedMask,
489 const Image & movingMask,
490 const bool logToConsole =
false,
491 const bool logToFile =
false,
492 const std::string outputDirectory =
".");
495 const Image & movingImage,
496 std::vector<std::map<std::string, std::vector<std::string>>> parameterMapVector,
497 const Image & fixedMask,
498 const Image & movingMask,
499 const bool logToConsole =
false,
500 const bool logToFile =
false,
501 const std::string outputDirectory =
".");
505 #endif // sitkElastixImageFilter_h