SimpleITK  1.2.4
sitkObjectnessMeasureImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
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 
71 
75  SITK_RETURN_SELF_TYPE_HEADER SetAlpha ( double Alpha ) { this->m_Alpha = Alpha; return *this; }
76 
80  double GetAlpha() const { return this->m_Alpha; }
81 
85  SITK_RETURN_SELF_TYPE_HEADER SetBeta ( double Beta ) { this->m_Beta = Beta; return *this; }
86 
90  double GetBeta() const { return this->m_Beta; }
91 
95  SITK_RETURN_SELF_TYPE_HEADER SetGamma ( double Gamma ) { this->m_Gamma = Gamma; return *this; }
96 
100  double GetGamma() const { return this->m_Gamma; }
101 
105  SITK_RETURN_SELF_TYPE_HEADER SetScaleObjectnessMeasure ( bool ScaleObjectnessMeasure ) { this->m_ScaleObjectnessMeasure = ScaleObjectnessMeasure; return *this; }
106 
108  SITK_RETURN_SELF_TYPE_HEADER ScaleObjectnessMeasureOn() { return this->SetScaleObjectnessMeasure(true); }
109  SITK_RETURN_SELF_TYPE_HEADER ScaleObjectnessMeasureOff() { return this->SetScaleObjectnessMeasure(false); }
110 
114  bool GetScaleObjectnessMeasure() const { return this->m_ScaleObjectnessMeasure; }
115 
119  SITK_RETURN_SELF_TYPE_HEADER SetObjectDimension ( unsigned int ObjectDimension ) { this->m_ObjectDimension = ObjectDimension; return *this; }
120 
124  unsigned int GetObjectDimension() const { return this->m_ObjectDimension; }
125 
129  SITK_RETURN_SELF_TYPE_HEADER SetBrightObject ( bool BrightObject ) { this->m_BrightObject = BrightObject; return *this; }
130 
132  SITK_RETURN_SELF_TYPE_HEADER BrightObjectOn() { return this->SetBrightObject(true); }
133  SITK_RETURN_SELF_TYPE_HEADER BrightObjectOff() { return this->SetBrightObject(false); }
134 
138  bool GetBrightObject() const { return this->m_BrightObject; }
140  std::string GetName() const { return std::string ("ObjectnessMeasureImageFilter"); }
141 
143  std::string ToString() const;
144 
145 
147  Image Execute ( const Image& image1 );
148 
149 
151  Image Execute ( const Image& image1, double alpha, double beta, double gamma, bool scaleObjectnessMeasure, unsigned int objectDimension, bool brightObject );
152 
153  private:
154 
157  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
158  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
159 
160 
161  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
162 
163  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
164 
165 
166  double m_Alpha;
167  /* Alpha */
168  double m_Beta;
169  double m_Gamma;
171  unsigned int m_ObjectDimension;
173  };
174 
175 
184  SITKBasicFilters_EXPORT 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 );
185 
186  }
187 }
188 #endif
Self & SetObjectDimension(unsigned int ObjectDimension)
#define SITKBasicFilters_EXPORT
Self & SetScaleObjectnessMeasure(bool ScaleObjectnessMeasure)
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
Enhance M-dimensional objects in N-dimensional images.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The Image class for SimpleITK.
Definition: sitkImage.h:78
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.
The base interface for SimpleITK filters that take one input image.