18 #ifndef sitkLevelSetMotionRegistrationFilter_h
19 #define sitkLevelSetMotionRegistrationFilter_h
81 SITK_RETURN_SELF_TYPE_HEADER
SetGradientSmoothingStandardDeviations (
double GradientSmoothingStandardDeviations ) { this->m_GradientSmoothingStandardDeviations = GradientSmoothingStandardDeviations;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumRMSError (
double MaximumRMSError ) { this->m_MaximumRMSError = MaximumRMSError;
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations (
const std::vector<double> & StandardDeviations ) { this->m_StandardDeviations = StandardDeviations;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetStandardDeviations(
double value ) { this->m_StandardDeviations = std::vector<double>(3, value);
return *
this; }
120 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothDisplacementField (
bool SmoothDisplacementField ) { this->m_SmoothDisplacementField = SmoothDisplacementField;
return *
this; }
134 SITK_RETURN_SELF_TYPE_HEADER
SetUpdateFieldStandardDeviations (
const std::vector<double> & UpdateFieldStandardDeviations ) { this->m_UpdateFieldStandardDeviations = UpdateFieldStandardDeviations;
return *
this; }
148 SITK_RETURN_SELF_TYPE_HEADER
SetSmoothUpdateField (
bool SmoothUpdateField ) { this->m_SmoothUpdateField = SmoothUpdateField;
return *
this; }
162 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumKernelWidth (
unsigned int MaximumKernelWidth ) { this->m_MaximumKernelWidth = MaximumKernelWidth;
return *
this; }
172 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumError (
double MaximumError ) { this->m_MaximumError = MaximumError;
return *
this; }
182 SITK_RETURN_SELF_TYPE_HEADER
SetAlpha (
double Alpha ) { this->m_Alpha = Alpha;
return *
this; }
191 SITK_RETURN_SELF_TYPE_HEADER
SetIntensityDifferenceThreshold (
double IntensityDifferenceThreshold ) { this->m_IntensityDifferenceThreshold = IntensityDifferenceThreshold;
return *
this; }
200 SITK_RETURN_SELF_TYPE_HEADER
SetGradientMagnitudeThreshold (
double GradientMagnitudeThreshold ) { this->m_GradientMagnitudeThreshold = GradientMagnitudeThreshold;
return *
this; }
208 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
242 std::string
GetName()
const {
return std::string (
"LevelSetMotionRegistrationFilter"); }
245 std::string ToString()
const;
253 Image Execute (
const Image & fixedImage,
const Image & movingImage,
double gradientSmoothingStandardDeviations,
uint32_t numberOfIterations,
double maximumRMSError,
const std::vector<double> & standardDeviations,
bool smoothDisplacementField,
const std::vector<double> & updateFieldStandardDeviations,
bool smoothUpdateField,
unsigned int maximumKernelWidth,
double maximumError,
double alpha,
double intensityDifferenceThreshold,
double gradientMagnitudeThreshold,
bool useImageSpacing );
260 typedef Image (Self::*MemberFunctionType)(
const Image * fixedImage,
const Image * movingImage );
261 template <
class TImageType>
Image ExecuteInternal (
const Image * fixedImage,
const Image * movingImage );
double m_IntensityDifferenceThreshold
double GetGradientSmoothingStandardDeviations() const
Deformably register two images using level set motion.
double GetMaximumError() const
Self & SmoothDisplacementFieldOff()
#define SITKBasicFilters_EXPORT
Self & SmoothDisplacementFieldOn()
unsigned int m_MaximumKernelWidth
Self & SetAlpha(double Alpha)
std::vector< double > m_UpdateFieldStandardDeviations
Self & SetUseImageSpacing(bool UseImageSpacing)
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
bool GetUseImageSpacing() const
bool GetSmoothDisplacementField() const
Self & SetSmoothUpdateField(bool SmoothUpdateField)
double m_GradientSmoothingStandardDeviations
Self & UseImageSpacingOn()
bool m_SmoothDisplacementField
uint32_t GetElapsedIterations() const
Number of iterations run.
std::string GetName() const
Self & SetStandardDeviations(double value)
Self & SetMaximumKernelWidth(unsigned int MaximumKernelWidth)
Self & SetGradientMagnitudeThreshold(double GradientMagnitudeThreshold)
unsigned int GetMaximumKernelWidth() const
Self & SetMaximumRMSError(double MaximumRMSError)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetIntensityDifferenceThreshold() const
double m_GradientMagnitudeThreshold
LevelSetMotionRegistrationFilter Self
Self & SetGradientSmoothingStandardDeviations(double GradientSmoothingStandardDeviations)
Self & SmoothUpdateFieldOff()
std::vector< double > GetUpdateFieldStandardDeviations() const
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
uint32_t GetNumberOfIterations() const
bool GetSmoothUpdateField() const
The main Image class for SimpleITK.
uint32_t m_ElapsedIterations
uint32_t m_NumberOfIterations
Self & UseImageSpacingOff()
Self & SmoothUpdateFieldOn()
BasicPixelIDTypeList PixelIDTypeList
Self & SetSmoothDisplacementField(bool SmoothDisplacementField)
Self & SetUpdateFieldStandardDeviations(double value)
double GetGradientMagnitudeThreshold() const
Self & SetIntensityDifferenceThreshold(double IntensityDifferenceThreshold)
double GetRMSChange() const
The Root Mean Square of the levelset upon termination.
Self & SetStandardDeviations(const std::vector< double > &StandardDeviations)
std::vector< double > GetStandardDeviations() const
Self & SetMaximumError(double MaximumError)
double GetMaximumRMSError() const
std::vector< double > m_StandardDeviations
The base interface for SimpleITK filters that take one input image.
Self & SetUpdateFieldStandardDeviations(const std::vector< double > &UpdateFieldStandardDeviations)