18 #ifndef sitkShapeDetectionLevelSetImageFilter_h
19 #define sitkShapeDetectionLevelSetImageFilter_h
102 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumRMSError (
double MaximumRMSError ) { this->m_MaximumRMSError = MaximumRMSError;
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetPropagationScaling (
double PropagationScaling ) { this->m_PropagationScaling = PropagationScaling;
return *
this; }
118 SITK_RETURN_SELF_TYPE_HEADER
SetCurvatureScaling (
double CurvatureScaling ) { this->m_CurvatureScaling = CurvatureScaling;
return *
this; }
134 SITK_RETURN_SELF_TYPE_HEADER
SetReverseExpansionDirection (
bool ReverseExpansionDirection ) { this->m_ReverseExpansionDirection = ReverseExpansionDirection;
return *
this; }
160 std::string
GetName()
const {
return std::string (
"ShapeDetectionLevelSetImageFilter"); }
163 std::string ToString()
const;
171 Image Execute (
const Image& image1,
const Image& image2,
double maximumRMSError,
double propagationScaling,
double curvatureScaling,
uint32_t numberOfIterations,
bool reverseExpansionDirection );
177 typedef Image (Self::*MemberFunctionType)(
const Image& image1,
const Image& image2 );
178 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
#define SITKBasicFilters_EXPORT
uint32_t m_ElapsedIterations
bool m_ReverseExpansionDirection
Self & ReverseExpansionDirectionOff()
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
double m_PropagationScaling
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Segments structures in images based on a user supplied edge potential map.
ShapeDetectionLevelSetImageFilter Self
uint32_t m_NumberOfIterations
Self & SetReverseExpansionDirection(bool ReverseExpansionDirection)
Self & SetCurvatureScaling(double CurvatureScaling)
double GetPropagationScaling() const
Image ShapeDetectionLevelSet(const Image &image1, const Image &image2, double maximumRMSError=0.02, double propagationScaling=1.0, double curvatureScaling=1.0, uint32_t numberOfIterations=1000u, bool reverseExpansionDirection=false)
Segments structures in images based on a user supplied edge potential map.
double GetCurvatureScaling() const
double GetMaximumRMSError() const
The Image class for SimpleITK.
Self & SetPropagationScaling(double PropagationScaling)
uint32_t GetElapsedIterations() const
Number of iterations run.
std::string GetName() const
double m_CurvatureScaling
double GetRMSChange() const
The Root Mean Square of the levelset upon termination.
bool GetReverseExpansionDirection() const
RealPixelIDTypeList PixelIDTypeList
Self & ReverseExpansionDirectionOn()
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
uint32_t GetNumberOfIterations() const
The base interface for SimpleITK filters that take one input image.
Self & SetMaximumRMSError(double MaximumRMSError)