18 #ifndef sitkObjectnessMeasureImageFilter_h
19 #define sitkObjectnessMeasureImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetAlpha (
double Alpha ) { this->m_Alpha = Alpha;
return *
this; }
80 double GetAlpha()
const {
return this->m_Alpha; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetBeta (
double Beta ) { this->m_Beta = Beta;
return *
this; }
90 double GetBeta()
const {
return this->m_Beta; }
95 SITK_RETURN_SELF_TYPE_HEADER
SetGamma (
double Gamma ) { this->m_Gamma = Gamma;
return *
this; }
105 SITK_RETURN_SELF_TYPE_HEADER
SetScaleObjectnessMeasure (
bool ScaleObjectnessMeasure ) { this->m_ScaleObjectnessMeasure = ScaleObjectnessMeasure;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetObjectDimension (
unsigned int ObjectDimension ) { this->m_ObjectDimension = ObjectDimension;
return *
this; }
129 SITK_RETURN_SELF_TYPE_HEADER
SetBrightObject (
bool BrightObject ) { this->m_BrightObject = BrightObject;
return *
this; }
132 SITK_RETURN_SELF_TYPE_HEADER
BrightObjectOn() {
return this->SetBrightObject(
true); }
133 SITK_RETURN_SELF_TYPE_HEADER
BrightObjectOff() {
return this->SetBrightObject(
false); }
140 std::string
GetName()
const {
return std::string (
"ObjectnessMeasureImageFilter"); }
143 std::string ToString()
const;
151 Image Execute (
const Image& image1,
double alpha,
double beta,
double gamma,
bool scaleObjectnessMeasure,
unsigned int objectDimension,
bool brightObject );
157 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
158 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SetObjectDimension(unsigned int ObjectDimension)
bool GetScaleObjectnessMeasure() const
#define SITKBasicFilters_EXPORT
ObjectnessMeasureImageFilter Self
Self & SetScaleObjectnessMeasure(bool ScaleObjectnessMeasure)
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
RealPixelIDTypeList PixelIDTypeList
Self & SetGamma(double Gamma)
Self & SetAlpha(double Alpha)
bool m_ScaleObjectnessMeasure
Enhance M-dimensional objects in N-dimensional images.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
unsigned int m_ObjectDimension
The Image class for SimpleITK.
unsigned int GetObjectDimension() const
Image ObjectnessMeasure(const Image &image1, double alpha=0.5, double beta=0.5, double gamma=5, bool scaleObjectnessMeasure=true, unsigned int objectDimension=1u, bool brightObject=true)
Enhance M-dimensional objects in N-dimensional images.
std::string GetName() const
Self & ScaleObjectnessMeasureOff()
Self & SetBrightObject(bool BrightObject)
The base interface for SimpleITK filters that take one input image.
bool GetBrightObject() const
Self & SetBeta(double Beta)
Self & ScaleObjectnessMeasureOn()