SimpleITK  
sitkZeroCrossingBasedEdgeDetectionImageFilter.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 sitkZeroCrossingBasedEdgeDetectionImageFilter_h
19#define sitkZeroCrossingBasedEdgeDetectionImageFilter_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
80public:
82
85
89
92
93
94
95
99 void
100 SetVariance(double Variance )
101 { this->m_Variance = Variance; }
102
105 double
106 GetVariance() const { return this->m_Variance; }
107
108
112 void
113 SetForegroundValue(uint8_t ForegroundValue )
114 { this->m_ForegroundValue = ForegroundValue; }
115
118 uint8_t
119 GetForegroundValue() const { return this->m_ForegroundValue; }
120
121
125 void
126 SetBackgroundValue(uint8_t BackgroundValue )
127 { this->m_BackgroundValue = BackgroundValue; }
128
131 uint8_t
132 GetBackgroundValue() const { return this->m_BackgroundValue; }
133
134
141 void
142 SetMaximumError(double MaximumError )
143 { this->m_MaximumError = MaximumError; }
144
147 double
148 GetMaximumError() const { return this->m_MaximumError; }
149
150
152 std::string GetName() const { return std::string("ZeroCrossingBasedEdgeDetectionImageFilter"); }
153
155 std::string ToString() const;
156
157
159 Image Execute(const Image &image1);
160
161
162private:
164 using MemberFunctionType = Image (Self::*)(const Image &image1);
165 template <class TImageType> Image ExecuteInternal(const Image &image1);
168
169
170 double m_Variance{ 1.0 };
171
172 uint8_t m_ForegroundValue{ 1u };
173
174 uint8_t m_BackgroundValue{ 0u };
175
176 double m_MaximumError{ 0.1 };
177
178
179
180
181
182
183
184};
185
186
196 const Image &image1, double variance = 1.0, uint8_t foregroundValue = 1u, uint8_t backgroundValue = 0u, double maximumError = 0.1
197);
198
200
201}
202#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
Image ZeroCrossingBasedEdgeDetection(const Image &image1, double variance=1.0, uint8_t foregroundValue=1u, uint8_t backgroundValue=0u, double maximumError=0.1)
This filter implements a zero-crossing based edge detector.
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT