18 #ifndef sitkFastSymmetricForcesDemonsRegistrationFilter_h
19 #define sitkFastSymmetricForcesDemonsRegistrationFilter_h
83 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations (
const std::vector<double> & StandardDeviations ) { this->m_StandardDeviations = StandardDeviations;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations(
double value ) { this->m_StandardDeviations = std::vector<double>(3, value);
return *
this; }
104 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumRMSError (
double MaximumRMSError ) { this->m_MaximumRMSError = MaximumRMSError;
return *
this; }
110 typedef enum {Symmetric,Fixed,
WarpedMoving,MappedMoving} UseGradientTypeType;
122 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumUpdateStepLength (
double MaximumUpdateStepLength ) { this->m_MaximumUpdateStepLength = MaximumUpdateStepLength;
return *
this; }
131 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothDisplacementField (
bool SmoothDisplacementField ) { this->m_SmoothDisplacementField = SmoothDisplacementField;
return *
this; }
145 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothUpdateField (
bool SmoothUpdateField ) { this->m_SmoothUpdateField = SmoothUpdateField;
return *
this; }
159 SITK_RETURN_SELF_TYPE_HEADER
SetUpdateFieldStandardDeviations (
const std::vector<double> & UpdateFieldStandardDeviations ) { this->m_UpdateFieldStandardDeviations = UpdateFieldStandardDeviations;
return *
this; }
173 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumKernelWidth (
unsigned int MaximumKernelWidth ) { this->m_MaximumKernelWidth = MaximumKernelWidth;
return *
this; }
183 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError (
double MaximumError ) { this->m_MaximumError = MaximumError;
return *
this; }
193 SITK_RETURN_SELF_TYPE_HEADER
SetIntensityDifferenceThreshold (
double IntensityDifferenceThreshold ) { this->m_IntensityDifferenceThreshold = IntensityDifferenceThreshold;
return *
this; }
201 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
234 double GetMetric()
const {
return this->m_pfGetMetric(); };
237 std::string
GetName()
const {
return std::string (
"FastSymmetricForcesDemonsRegistrationFilter"); }
240 std::string ToString()
const;
244 Image Execute (
const Image & fixedImage,
const Image & movingImage,
const Image & initialDisplacementField );
249 Image Execute (
const Image & fixedImage,
const Image & movingImage,
const Image & initialDisplacementField,
const std::vector<double> & standardDeviations,
uint32_t numberOfIterations,
double maximumRMSError,
FastSymmetricForcesDemonsRegistrationFilter::UseGradientTypeType useGradientType,
double maximumUpdateStepLength,
bool smoothDisplacementField,
bool smoothUpdateField,
const std::vector<double> & updateFieldStandardDeviations,
unsigned int maximumKernelWidth,
double maximumError,
double intensityDifferenceThreshold,
bool useImageSpacing );
250 Image Execute (
const Image & fixedImage,
const Image & movingImage,
const std::vector<double> & standardDeviations,
uint32_t numberOfIterations,
double maximumRMSError,
FastSymmetricForcesDemonsRegistrationFilter::UseGradientTypeType useGradientType,
double maximumUpdateStepLength,
bool smoothDisplacementField,
bool smoothUpdateField,
const std::vector<double> & updateFieldStandardDeviations,
unsigned int maximumKernelWidth,
double maximumError,
double intensityDifferenceThreshold,
bool useImageSpacing );
256 typedef Image (Self::*MemberFunctionType)(
const Image * fixedImage,
const Image * movingImage,
const Image * initialDisplacementField );
257 template <
class TImageType>
Image ExecuteInternal (
const Image * fixedImage,
const Image * movingImage,
const Image * initialDisplacementField );
Self & SetMaximumKernelWidth(unsigned int MaximumKernelWidth)
bool GetSmoothUpdateField() const
uint32_t m_NumberOfIterations
#define SITKBasicFilters_EXPORT
std::string GetName() const
double GetMaximumRMSError() const
Self & SetMaximumRMSError(double MaximumRMSError)
Self & SetIntensityDifferenceThreshold(double IntensityDifferenceThreshold)
double m_MaximumUpdateStepLength
bool GetSmoothDisplacementField() const
Self & SetMaximumUpdateStepLength(double MaximumUpdateStepLength)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Self & SetUpdateFieldStandardDeviations(double value)
Self & UseImageSpacingOn()
BasicPixelIDTypeList PixelIDTypeList
Self & SmoothDisplacementFieldOn()
Self & SetUseGradientType(UseGradientTypeType UseGradientType)
double GetMaximumError() const
bool GetUseImageSpacing() const
std::vector< double > GetUpdateFieldStandardDeviations() const
double m_IntensityDifferenceThreshold
Self & SetSmoothDisplacementField(bool SmoothDisplacementField)
std::vector< double > m_UpdateFieldStandardDeviations
nsstd::function< double()> m_pfGetMetric
Self & SmoothDisplacementFieldOff()
FastSymmetricForcesDemonsRegistrationFilter Self
double GetIntensityDifferenceThreshold() const
Self & SetUseImageSpacing(bool UseImageSpacing)
UseGradientTypeType m_UseGradientType
uint32_t GetNumberOfIterations() const
unsigned int m_MaximumKernelWidth
bool m_SmoothDisplacementField
UseGradientTypeType GetUseGradientType() const
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
Self & SmoothUpdateFieldOn()
The Image class for SimpleITK.
Self & SetMaximumError(double MaximumError)
double GetMaximumUpdateStepLength() const
nsstd::function< uint32_t()> m_pfGetElapsedIterations
Self & SmoothUpdateFieldOff()
itk::ProcessObject * m_Filter
Self & UseImageSpacingOff()
double GetRMSChange() const
Self & SetStandardDeviations(double value)
Deformably register two images using a symmetric forces demons algorithm.
std::vector< double > GetStandardDeviations() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetStandardDeviations(const std::vector< double > &StandardDeviations)
Self & SetUpdateFieldStandardDeviations(const std::vector< double > &UpdateFieldStandardDeviations)
std::vector< double > m_StandardDeviations
The base interface for SimpleITK filters that take one input image.
Self & SetSmoothUpdateField(bool SmoothUpdateField)
uint32_t GetElapsedIterations() const
Number of iterations run.
unsigned int GetMaximumKernelWidth() const