1 #ifndef sitktransformiximagefilterimpl_h
2 #define sitktransformiximagefilterimpl_h
9 #include "itkTransformixFilter.h"
10 #include "elxParameterObject.h"
17 TransformixImageFilterImpl();
18 ~TransformixImageFilterImpl();
20 typedef TransformixImageFilterImpl
Self;
34 std::string GetName()
const;
36 void SetMovingImage(
const Image& movingImage );
37 Image& GetMovingImage();
38 void RemoveMovingImage();
40 void SetFixedPointSetFileName(
const std::string movingPointSetFileName );
41 std::string GetFixedPointSetFileName();
42 void RemoveFixedPointSetFileName();
44 void SetComputeSpatialJacobian(
const bool );
45 bool GetComputeSpatialJacobian();
46 void ComputeSpatialJacobianOn();
47 void ComputeSpatialJacobianOff();
49 void SetComputeDeterminantOfSpatialJacobian(
const bool );
50 bool GetComputeDeterminantOfSpatialJacobian();
51 void ComputeDeterminantOfSpatialJacobianOn();
52 void ComputeDeterminantOfSpatialJacobianOff();
54 void SetComputeDeformationField(
bool );
55 bool GetComputeDeformationField();
56 void ComputeDeformationFieldOn();
57 void ComputeDeformationFieldOff();
59 void SetOutputDirectory(
const std::string outputDirectory );
60 std::string GetOutputDirectory();
61 void RemoveOutputDirectory();
63 void SetLogFileName(
const std::string logFileName );
64 std::string GetLogFileName();
65 void RemoveLogFileName();
67 void SetLogToFile(
const bool logToFile );
72 void SetLogToConsole(
const bool logToConsole );
73 bool GetLogToConsole();
74 void LogToConsoleOn();
75 void LogToConsoleOff();
77 void SetTransformParameterMap(
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector );
78 void SetTransformParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
79 void AddTransformParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
80 std::vector< std::map< std::string, std::vector< std::string > > > GetTransformParameterMap();
81 unsigned int GetNumberOfTransformParameterMaps();
83 void SetTransformParameter(
const std::string key,
const std::string value );
84 void SetTransformParameter(
const std::string key,
const std::vector< std::string > value );
85 void SetTransformParameter(
const unsigned int index,
const std::string key,
const std::string value );
86 void SetTransformParameter(
const unsigned int index,
const std::string key,
const std::vector< std::string > value );
87 void AddTransformParameter(
const std::string key,
const std::string value );
88 void AddTransformParameter(
const unsigned int index,
const std::string key,
const std::string value );
89 std::vector< std::string > GetTransformParameter(
const std::string key );
90 std::vector< std::string > GetTransformParameter(
const unsigned int index,
const std::string key );
91 void RemoveTransformParameter(
const std::string key );
92 void RemoveTransformParameter(
const unsigned int index,
const std::string key );
94 std::map< std::string, std::vector< std::string > >
ReadParameterFile(
const std::string filename );
95 void WriteParameterFile(
const std::map< std::string, std::vector< std::string > > parameterMap,
const std::string parameterFileName );
98 void PrintParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
99 void PrintParameterMap(
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector );
103 Image GetResultImage();
104 Image GetDeformationField();
106 bool IsEmpty(
const Image& image );
110 template<
class TMovingImage >
Image ExecuteInternal();
112 std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > >
m_MemberFactory;
134 #endif // sitktransformiximagefilterimpl_h