SimpleITK  
sitkCannyEdgeDetectionImageFilter.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 sitkCannyEdgeDetectionImageFilter_h
19#define sitkCannyEdgeDetectionImageFilter_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
82public:
84
87
91
94
95
96
97
101 void
102 SetLowerThreshold(double LowerThreshold )
103 { this->m_LowerThreshold = LowerThreshold; }
104
106 double
107 GetLowerThreshold() const { return this->m_LowerThreshold; }
108
109
113 void
114 SetUpperThreshold(double UpperThreshold )
115 { this->m_UpperThreshold = UpperThreshold; }
116
118 double
119 GetUpperThreshold() const { return this->m_UpperThreshold; }
120
121
125 void
126 SetVariance(std::vector<double> Variance )
127 { this->m_Variance = std::move(Variance); }
128
130 void
131 SetVariance( double value ) { this->m_Variance = std::vector<double>(3, value); }
135 std::vector<double>
136 GetVariance() const { return this->m_Variance; }
137
138
142 void
143 SetMaximumError(std::vector<double> MaximumError )
144 { this->m_MaximumError = std::move(MaximumError); }
145
147 void
148 SetMaximumError( double value ) { this->m_MaximumError = std::vector<double>(3, value); }
152 std::vector<double>
153 GetMaximumError() const { return this->m_MaximumError; }
154
155
157 std::string GetName() const { return std::string("CannyEdgeDetectionImageFilter"); }
158
160 std::string ToString() const;
161
162
164 Image Execute(const Image &image1);
165
166
167private:
169 using MemberFunctionType = Image (Self::*)(const Image &image1);
170 template <class TImageType> Image ExecuteInternal(const Image &image1);
173
174
175 double m_LowerThreshold{ 0.0 };
176
177 double m_UpperThreshold{ 0.0 };
178
179 std::vector<double> m_Variance{ std::vector<double>(3, 0.0) };
180
181 std::vector<double> m_MaximumError{ std::vector<double>(3, 0.01) };
182
183
184
185
186
187
188
189};
190
191
201 const Image &image1, double lowerThreshold = 0.0, double upperThreshold = 0.0, std::vector<double> variance = std::vector<double>(3, 0.0), std::vector<double> maximumError = std::vector<double>(3, 0.01)
202);
203
205
206}
207#endif
Image Execute(const Image &image1)
void SetUpperThreshold(double UpperThreshold)
Set the upper threshold value for detected edges.
void SetLowerThreshold(double LowerThreshold)
Set the lower threshold value for detected edges.
Image ExecuteInternal(const Image &image1)
void SetMaximumError(std::vector< double > MaximumError)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image CannyEdgeDetection(const Image &image1, double lowerThreshold=0.0, double upperThreshold=0.0, std::vector< double > variance=std::vector< double >(3, 0.0), std::vector< double > maximumError=std::vector< double >(3, 0.01))
This filter is an implementation of a Canny edge detector for scalar-valued images.
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT