SimpleITK  
sitkSimpleContourExtractorImageFilter.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 sitkSimpleContourExtractorImageFilter_h
19#define sitkSimpleContourExtractorImageFilter_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
58public:
60
63
67
70
71
72
73
77 void
78 SetInputForegroundValue(double InputForegroundValue )
79 { this->m_InputForegroundValue = InputForegroundValue; }
80
83 double
85
86
90 void
91 SetInputBackgroundValue(double InputBackgroundValue )
92 { this->m_InputBackgroundValue = InputBackgroundValue; }
93
96 double
98
99
102 void
103 SetRadius(std::vector<unsigned int> Radius )
104 { this->m_Radius = std::move(Radius); }
105
107 void
108 SetRadius( unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value); }
111 std::vector<unsigned int>
112 GetRadius() const { return this->m_Radius; }
113
114
118 void
119 SetOutputForegroundValue(double OutputForegroundValue )
120 { this->m_OutputForegroundValue = OutputForegroundValue; }
121
124 double
126
127
131 void
132 SetOutputBackgroundValue(double OutputBackgroundValue )
133 { this->m_OutputBackgroundValue = OutputBackgroundValue; }
134
137 double
139
140
142 std::string GetName() const { return std::string("SimpleContourExtractorImageFilter"); }
143
145 std::string ToString() const;
146
147
149 Image Execute(const Image &image1);
150
151
152private:
154 using MemberFunctionType = Image (Self::*)(const Image &image1);
155 template <class TImageType> Image ExecuteInternal(const Image &image1);
158
159
161
163
164 std::vector<unsigned int> m_Radius{ std::vector<unsigned int>(3, 1) };
165
167
169
170
171
172
173
174
175
176};
177
178
188 const Image &image1, double inputForegroundValue = 1.0, double inputBackgroundValue = 0.0, std::vector<unsigned int> radius = std::vector<unsigned int>(3, 1), double outputForegroundValue = 1.0, double outputBackgroundValue = 0.0
189);
190
192
193}
194#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image ExecuteInternal(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
Image SimpleContourExtractor(const Image &image1, double inputForegroundValue=1.0, double inputBackgroundValue=0.0, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1), double outputForegroundValue=1.0, double outputBackgroundValue=0.0)
Computes an image of contours which will be the contour of the first image.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT