18 #ifndef sitkSymmetricForcesDemonsRegistrationFilter_h
19 #define sitkSymmetricForcesDemonsRegistrationFilter_h
85 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations ( std::vector<double> StandardDeviations ) { this->m_StandardDeviations = std::move(StandardDeviations);
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations(
double value ) { this->m_StandardDeviations = std::vector<double>(3, value);
return *
this; }
105 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumRMSError (
double MaximumRMSError ) { this->m_MaximumRMSError = MaximumRMSError;
return *
this; }
114 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothDisplacementField (
bool SmoothDisplacementField ) { this->m_SmoothDisplacementField = SmoothDisplacementField;
return *
this; }
128 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothUpdateField (
bool SmoothUpdateField ) { this->m_SmoothUpdateField = SmoothUpdateField;
return *
this; }
142 SITK_RETURN_SELF_TYPE_HEADER
SetUpdateFieldStandardDeviations ( std::vector<double> UpdateFieldStandardDeviations ) { this->m_UpdateFieldStandardDeviations = std::move(UpdateFieldStandardDeviations);
return *
this; }
155 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumKernelWidth (
unsigned int MaximumKernelWidth ) { this->m_MaximumKernelWidth = MaximumKernelWidth;
return *
this; }
165 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError (
double MaximumError ) { this->m_MaximumError = MaximumError;
return *
this; }
175 SITK_RETURN_SELF_TYPE_HEADER
SetIntensityDifferenceThreshold (
double IntensityDifferenceThreshold ) { this->m_IntensityDifferenceThreshold = IntensityDifferenceThreshold;
return *
this; }
183 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
216 double GetMetric()
const {
return this->m_pfGetMetric(); };
220 std::string
GetName()
const {
return std::string (
"SymmetricForcesDemonsRegistrationFilter"); }
223 std::string ToString()
const;
228 Image Execute (
const Image & fixedImage,
const Image & movingImage,
const Image & initialDisplacementField );
236 template <
class TImageType>
Image ExecuteInternal (
const Image * fixedImage,
const Image * movingImage,
const Image * initialDisplacementField );
244 std::vector<double> m_StandardDeviations{std::vector<double>(3, 1.0)};
250 double m_MaximumRMSError{0.02};
252 bool m_SmoothDisplacementField{
true};
254 bool m_SmoothUpdateField{
false};
256 std::vector<double> m_UpdateFieldStandardDeviations{std::vector<double>(3, 1.0)};
258 unsigned int m_MaximumKernelWidth{30u};
260 double m_MaximumError{0.1};
262 double m_IntensityDifferenceThreshold{0.001};
264 bool m_UseImageSpacing{
true};
269 double m_RMSChange{0.0};