SimpleITK  2.0.0
sitkObjectnessMeasureImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18 #ifndef sitkObjectnessMeasureImageFilter_h
19 #define sitkObjectnessMeasureImageFilter_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
57  public:
59 
62 
66 
69 \
70 
74  SITK_RETURN_SELF_TYPE_HEADER SetAlpha ( double Alpha ) { this->m_Alpha = Alpha; return *this; }
75 
79  double GetAlpha() const { return this->m_Alpha; }\
80 
84  SITK_RETURN_SELF_TYPE_HEADER SetBeta ( double Beta ) { this->m_Beta = Beta; return *this; }
85 
89  double GetBeta() const { return this->m_Beta; }\
90 
94  SITK_RETURN_SELF_TYPE_HEADER SetGamma ( double Gamma ) { this->m_Gamma = Gamma; return *this; }
95 
99  double GetGamma() const { return this->m_Gamma; }\
100 
104  SITK_RETURN_SELF_TYPE_HEADER SetScaleObjectnessMeasure ( bool ScaleObjectnessMeasure ) { this->m_ScaleObjectnessMeasure = ScaleObjectnessMeasure; return *this; }
105 
107  SITK_RETURN_SELF_TYPE_HEADER ScaleObjectnessMeasureOn() { return this->SetScaleObjectnessMeasure(true); }
108  SITK_RETURN_SELF_TYPE_HEADER ScaleObjectnessMeasureOff() { return this->SetScaleObjectnessMeasure(false); }
109 
113  bool GetScaleObjectnessMeasure() const { return this->m_ScaleObjectnessMeasure; }\
114 
118  SITK_RETURN_SELF_TYPE_HEADER SetObjectDimension ( unsigned int ObjectDimension ) { this->m_ObjectDimension = ObjectDimension; return *this; }
119 
123  unsigned int GetObjectDimension() const { return this->m_ObjectDimension; }\
124 
128  SITK_RETURN_SELF_TYPE_HEADER SetBrightObject ( bool BrightObject ) { this->m_BrightObject = BrightObject; return *this; }
129 
131  SITK_RETURN_SELF_TYPE_HEADER BrightObjectOn() { return this->SetBrightObject(true); }
132  SITK_RETURN_SELF_TYPE_HEADER BrightObjectOff() { return this->SetBrightObject(false); }
133 
137  bool GetBrightObject() const { return this->m_BrightObject; }
138 
140  std::string GetName() const { return std::string ("ObjectnessMeasureImageFilter"); }
141 
143  std::string ToString() const;
144 
145 
148  Image Execute ( const Image& image1 );
149 
150  private:
151 
154  using MemberFunctionType = Image (Self::*)( const Image& image1 );
155  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
156 
157 
159 
160  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
161 
162 
163  double m_Alpha{0.5};
164 
165  /* Alpha */
166  double m_Beta{0.5};
167 
168  double m_Gamma{5.0};
169 
170  bool m_ScaleObjectnessMeasure{true};
171 
172  unsigned int m_ObjectDimension{1u};
173 
174  bool m_BrightObject{true};
175 
176 
177  };
178 
189  SITKBasicFilters_EXPORT Image ObjectnessMeasure ( const Image& image1, double alpha = 0.5, double beta = 0.5, double gamma = 5.0, bool scaleObjectnessMeasure = true, unsigned int objectDimension = 1u, bool brightObject = true );
190 
192  }
193 }
194 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
itk::simple::ObjectnessMeasureImageFilter::SetScaleObjectnessMeasure
Self & SetScaleObjectnessMeasure(bool ScaleObjectnessMeasure)
Definition: sitkObjectnessMeasureImageFilter.h:104
itk::simple::ObjectnessMeasureImageFilter::GetGamma
double GetGamma() const
Definition: sitkObjectnessMeasureImageFilter.h:99
sitkBasicFilters.h
itk::simple::ObjectnessMeasureImageFilter::SetBeta
Self & SetBeta(double Beta)
Definition: sitkObjectnessMeasureImageFilter.h:84
itk::simple::ObjectnessMeasureImageFilter::SetAlpha
Self & SetAlpha(double Alpha)
Definition: sitkObjectnessMeasureImageFilter.h:74
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::RealPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:96
itk::simple::ObjectnessMeasureImageFilter
Enhance M-dimensional objects in N-dimensional images.
Definition: sitkObjectnessMeasureImageFilter.h:56
itk::simple::ObjectnessMeasureImageFilter::SetGamma
Self & SetGamma(double Gamma)
Definition: sitkObjectnessMeasureImageFilter.h:94
itk::simple::ObjectnessMeasureImageFilter::SetObjectDimension
Self & SetObjectDimension(unsigned int ObjectDimension)
Definition: sitkObjectnessMeasureImageFilter.h:118
itk::simple::ObjectnessMeasureImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkObjectnessMeasureImageFilter.h:154
sitkImageFilter.h
itk::simple::ObjectnessMeasureImageFilter::GetName
std::string GetName() const
Definition: sitkObjectnessMeasureImageFilter.h:140
itk::simple::ObjectnessMeasureImageFilter::ScaleObjectnessMeasureOff
Self & ScaleObjectnessMeasureOff()
Definition: sitkObjectnessMeasureImageFilter.h:108
itk::simple::ObjectnessMeasureImageFilter::GetAlpha
double GetAlpha() const
Definition: sitkObjectnessMeasureImageFilter.h:79
itk::simple::ObjectnessMeasureImageFilter::PixelIDTypeList
RealPixelIDTypeList PixelIDTypeList
Definition: sitkObjectnessMeasureImageFilter.h:68
itk::simple::ObjectnessMeasure
Image ObjectnessMeasure(const Image &image1, double alpha=0.5, double beta=0.5, double gamma=5.0, bool scaleObjectnessMeasure=true, unsigned int objectDimension=1u, bool brightObject=true)
Enhance M-dimensional objects in N-dimensional images.
itk::simple::ObjectnessMeasureImageFilter::GetBeta
double GetBeta() const
Definition: sitkObjectnessMeasureImageFilter.h:89
itk::simple::ObjectnessMeasureImageFilter::BrightObjectOff
Self & BrightObjectOff()
Definition: sitkObjectnessMeasureImageFilter.h:132
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::ObjectnessMeasureImageFilter::GetObjectDimension
unsigned int GetObjectDimension() const
Definition: sitkObjectnessMeasureImageFilter.h:123
itk::simple::ObjectnessMeasureImageFilter::BrightObjectOn
Self & BrightObjectOn()
Definition: sitkObjectnessMeasureImageFilter.h:131
itk::simple::ObjectnessMeasureImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkObjectnessMeasureImageFilter.h:160
itk
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::ObjectnessMeasureImageFilter::SetBrightObject
Self & SetBrightObject(bool BrightObject)
Definition: sitkObjectnessMeasureImageFilter.h:128
itk::simple::ObjectnessMeasureImageFilter::GetBrightObject
bool GetBrightObject() const
Definition: sitkObjectnessMeasureImageFilter.h:137
itk::simple::ObjectnessMeasureImageFilter::ScaleObjectnessMeasureOn
Self & ScaleObjectnessMeasureOn()
Definition: sitkObjectnessMeasureImageFilter.h:107
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::ObjectnessMeasureImageFilter::GetScaleObjectnessMeasure
bool GetScaleObjectnessMeasure() const
Definition: sitkObjectnessMeasureImageFilter.h:113