SimpleITK  
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.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
70public:
72
75
79
82
83
84
85
90 void
91 SetAlpha(double Alpha )
92 { this->m_Alpha = Alpha; }
93
97 double
98 GetAlpha() const { return this->m_Alpha; }
99
100
105 void
106 SetBeta(double Beta )
107 { this->m_Beta = Beta; }
108
112 double
113 GetBeta() const { return this->m_Beta; }
114
115
120 void
121 SetGamma(double Gamma )
122 { this->m_Gamma = Gamma; }
123
127 double
128 GetGamma() const { return this->m_Gamma; }
129
130
134 void
135 SetScaleObjectnessMeasure(bool ScaleObjectnessMeasure )
136 { this->m_ScaleObjectnessMeasure = ScaleObjectnessMeasure; }
137
139 void
141 void
146 bool
148
149
154 void
155 SetObjectDimension(unsigned int ObjectDimension )
156 { this->m_ObjectDimension = ObjectDimension; }
157
161 unsigned int
162 GetObjectDimension() const { return this->m_ObjectDimension; }
163
164
168 void
169 SetBrightObject(bool BrightObject )
170 { this->m_BrightObject = BrightObject; }
171
173 void
174 BrightObjectOn() { return this->SetBrightObject(true); }
175 void
176 BrightObjectOff() { return this->SetBrightObject(false); }
180 bool
181 GetBrightObject() const { return this->m_BrightObject; }
182
183
185 std::string GetName() const { return std::string("ObjectnessMeasureImageFilter"); }
186
188 std::string ToString() const;
189
190
192 Image Execute(const Image &image1);
193
194
195private:
197 using MemberFunctionType = Image (Self::*)(const Image &image1);
198 template <class TImageType> Image ExecuteInternal(const Image &image1);
201
202
203 double m_Alpha{ 0.5 };
204
205 /* Alpha */
206 double m_Beta{ 0.5 };
207
208 double m_Gamma{ 5.0 };
209
211
212 unsigned int m_ObjectDimension{ 1u };
213
214 bool m_BrightObject{ true };
215
216
217
218
219
220
221
222};
223
224
234 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
235);
236
238
239}
240#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image ExecuteInternal(const Image &image1)
Image Execute(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
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.
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT