18 #ifndef sitkTransformixImageFilter_h
19 #define sitkTransformixImageFilter_h
50 std::string GetName()
const;
52 SITK_RETURN_SELF_TYPE_HEADER SetMovingImage(
const Image& movingImage );
53 Image& GetMovingImage();
54 SITK_RETURN_SELF_TYPE_HEADER RemoveMovingImage();
56 SITK_RETURN_SELF_TYPE_HEADER SetFixedPointSetFileName(
const std::string movingPointSetFileName );
57 std::string GetFixedPointSetFileName();
58 SITK_RETURN_SELF_TYPE_HEADER RemoveFixedPointSetFileName();
60 SITK_RETURN_SELF_TYPE_HEADER SetComputeSpatialJacobian(
const bool );
61 bool GetComputeSpatialJacobian();
62 SITK_RETURN_SELF_TYPE_HEADER ComputeSpatialJacobianOn();
63 SITK_RETURN_SELF_TYPE_HEADER ComputeSpatialJacobianOff();
65 SITK_RETURN_SELF_TYPE_HEADER SetComputeDeterminantOfSpatialJacobian(
const bool );
66 bool GetComputeDeterminantOfSpatialJacobian();
67 SITK_RETURN_SELF_TYPE_HEADER ComputeDeterminantOfSpatialJacobianOn();
68 SITK_RETURN_SELF_TYPE_HEADER ComputeDeterminantOfSpatialJacobianOff();
70 SITK_RETURN_SELF_TYPE_HEADER SetComputeDeformationField(
bool );
71 bool GetComputeDeformationField();
72 SITK_RETURN_SELF_TYPE_HEADER ComputeDeformationFieldOn();
73 SITK_RETURN_SELF_TYPE_HEADER ComputeDeformationFieldOff();
75 SITK_RETURN_SELF_TYPE_HEADER SetOutputDirectory(
const std::string outputDirectory );
76 std::string GetOutputDirectory();
77 SITK_RETURN_SELF_TYPE_HEADER RemoveOutputDirectory();
79 SITK_RETURN_SELF_TYPE_HEADER SetLogFileName(
const std::string logFileName );
80 std::string GetLogFileName();
81 SITK_RETURN_SELF_TYPE_HEADER RemoveLogFileName();
83 SITK_RETURN_SELF_TYPE_HEADER SetLogToFile(
const bool logToFile );
85 SITK_RETURN_SELF_TYPE_HEADER LogToFileOn();
86 SITK_RETURN_SELF_TYPE_HEADER LogToFileOff();
88 SITK_RETURN_SELF_TYPE_HEADER SetLogToConsole(
const bool logToConsole );
89 bool GetLogToConsole();
90 SITK_RETURN_SELF_TYPE_HEADER LogToConsoleOn();
91 SITK_RETURN_SELF_TYPE_HEADER LogToConsoleOff();
93 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameterMap(
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector );
94 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
95 SITK_RETURN_SELF_TYPE_HEADER AddTransformParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
96 std::vector< std::map< std::string, std::vector< std::string > > > GetTransformParameterMap();
97 unsigned int GetNumberOfTransformParameterMaps();
99 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameter(
const std::string key,
const std::string value );
100 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameter(
const std::string key,
const std::vector< std::string > value );
101 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameter(
const unsigned int index,
const std::string key,
const std::string value );
102 SITK_RETURN_SELF_TYPE_HEADER SetTransformParameter(
const unsigned int index,
const std::string key,
const std::vector< std::string > value );
103 SITK_RETURN_SELF_TYPE_HEADER AddTransformParameter(
const std::string key,
const std::string value );
104 SITK_RETURN_SELF_TYPE_HEADER AddTransformParameter(
const unsigned int index,
const std::string key,
const std::string value );
105 std::vector< std::string > GetTransformParameter(
const std::string key );
106 std::vector< std::string > GetTransformParameter(
const unsigned int index,
const std::string key );
107 SITK_RETURN_SELF_TYPE_HEADER RemoveTransformParameter(
const std::string key );
108 SITK_RETURN_SELF_TYPE_HEADER RemoveTransformParameter(
const unsigned int index,
const std::string key );
110 std::map< std::string, std::vector< std::string > >
ReadParameterFile(
const std::string parameterFileName );
111 SITK_RETURN_SELF_TYPE_HEADER
WriteParameterFile(
const std::map< std::string, std::vector< std::string > > parameterMap,
const std::string parameterFileName );
114 SITK_RETURN_SELF_TYPE_HEADER
PrintParameterMap(
const std::map< std::string, std::vector< std::string > > parameterMap );
115 SITK_RETURN_SELF_TYPE_HEADER
PrintParameterMap(
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector );
119 Image GetResultImage();
120 Image GetDeformationField();
124 class TransformixImageFilterImpl;
125 const std::unique_ptr<TransformixImageFilterImpl>
m_Pimple;
130 SITKElastix_EXPORT Image Transformix(
const Image& movingImage,
const std::map< std::string, std::vector< std::string > > parameterMap,
const bool logToConsole =
false,
const std::string outputDirectory =
"." );
131 SITKElastix_EXPORT Image Transformix(
const Image& movingImage,
const std::vector< std::map< std::string, std::vector< std::string > > > parameterMapVector,
const bool logToConsole =
false,
const std::string outputDirectory =
"." );
135 #endif // sitkTransformixImageFilter_h