1 #ifndef sitkelastiximagefilterimpl_h
2 #define sitkelastiximagefilterimpl_h
10 #include "itkElastixRegistrationMethod.h"
11 #include "elxParameterObject.h"
18 ElastixImageFilterImpl(
void );
19 ~ElastixImageFilterImpl(
void );
21 typedef ElastixImageFilterImpl
Self;
37 std::string GetName(
void )
const;
39 void SetFixedImage(
const Image& fixedImage );
41 void AddFixedImage(
const Image& fixedImage );
42 Image& GetFixedImage(
const unsigned long index );
44 void RemoveFixedImage(
const unsigned long index );
45 void RemoveFixedImage(
void );
46 unsigned int GetNumberOfFixedImages();
48 void SetMovingImage(
const Image& movingImages );
50 void AddMovingImage(
const Image& movingImage );
51 Image& GetMovingImage(
const unsigned long index );
53 void RemoveMovingImage(
const unsigned long index );
54 void RemoveMovingImage(
void );
55 unsigned int GetNumberOfMovingImages();
57 void SetFixedMask(
const Image& fixedMask );
59 void AddFixedMask(
const Image& fixedMask );
60 Image& GetFixedMask(
const unsigned long index );
62 void RemoveFixedMask(
const unsigned long index );
63 void RemoveFixedMask(
void );
64 unsigned int GetNumberOfFixedMasks();
66 void SetMovingMask(
const Image& movingMask );
68 void AddMovingMask(
const Image& movingMask );
69 Image& GetMovingMask(
const unsigned long index );
71 void RemoveMovingMask(
const unsigned long index );
72 void RemoveMovingMask(
void );
73 unsigned int GetNumberOfMovingMasks();
75 void SetFixedPointSetFileName(
const std::string movingPointSetFileName );
76 std::string GetFixedPointSetFileName(
void );
77 void RemoveFixedPointSetFileName(
void );
79 void SetMovingPointSetFileName(
const std::string movingPointSetFileName );
80 std::string GetMovingPointSetFileName(
void );
81 void RemoveMovingPointSetFileName(
void );
83 void SetOutputDirectory(
const std::string outputDirectory );
84 std::string GetOutputDirectory(
void );
85 void RemoveOutputDirectory(
void );
87 void SetLogFileName(
const std::string logFileName );
88 std::string GetLogFileName(
void );
89 void RemoveLogFileName(
void );
91 void SetLogToFile(
const bool logToFile );
92 bool GetLogToFile(
void );
93 void LogToFileOn(
void );
94 void LogToFileOff(
void );
96 void SetLogToConsole(
bool );
97 bool GetLogToConsole(
void );
98 void LogToConsoleOn();
99 void LogToConsoleOff();
101 void SetNumberOfThreads(
int n );
102 int GetNumberOfThreads(
void );
104 void SetParameterMap(
const std::string transformName,
const unsigned int numberOfResolutions = 4u,
const double finalGridSpacingInPhysicalUnits = 10.0 );
105 void SetParameterMap(
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector );
106 void SetParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
107 void AddParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
108 std::vector< std::map< std::string, std::vector< std::string > > > GetParameterMap(
void );
109 std::map< std::string, std::vector< std::string > >
GetDefaultParameterMap(
const std::string transformName,
const unsigned int numberOfResolutions = 4,
const double finalGridSpacingInPhysicalUnits = 10.0 );
110 unsigned int GetNumberOfParameterMaps(
void );
112 void SetParameter(
const std::string key,
const std::string value );
113 void SetParameter(
const std::string key,
const std::vector< std::string > value );
114 void SetParameter(
const unsigned int index,
const std::string key,
const std::string value );
115 void SetParameter(
const unsigned int index,
const std::string key,
const std::vector< std::string > value );
116 void AddParameter(
const std::string key,
const std::string value );
117 void AddParameter(
const unsigned int index,
const std::string key,
const std::string value );
118 void AddParameter(
const std::string key,
const std::vector< std::string > value );
119 void AddParameter(
const unsigned int index,
const std::string key,
const std::vector< std::string > value );
120 std::vector< std::string > GetParameter(
const std::string key );
121 std::vector< std::string > GetParameter(
const unsigned int index,
const std::string key );
122 void RemoveParameter(
const std::string key );
123 void RemoveParameter(
const unsigned int index,
const std::string key );
125 void SetInitialTransformParameterFileName(
const std::string initialTransformParmaterFileName );
126 std::string GetInitialTransformParameterFileName(
void );
127 void RemoveInitialTransformParameterFileName(
void );
129 std::map< std::string, std::vector< std::string > >
ReadParameterFile(
const std::string filename );
130 void WriteParameterFile(
const std::map< std::string, std::vector< std::string > > parameterMap,
const std::string filename );
132 Image Execute(
void );
133 std::vector< std::map< std::string, std::vector< std::string > > > GetTransformParameterMap(
void );
134 std::map< std::string, std::vector< std::string > > GetTransformParameterMap(
const unsigned int index );
135 Image GetResultImage(
void );
141 bool IsEmpty(
const Image& image );
145 template<
class TFixedImage,
class TMovingImage >
Image DualExecuteInternal(
void );
174 #endif // sitkelastiximagefilterimpl_h