SimpleITK  
sitkContourExtractor2DImageFilter.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 sitkContourExtractor2DImageFilter_h
19#define sitkContourExtractor2DImageFilter_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
81public:
83
86
90
93
94
95
96
101 void
102 SetContourValue(double ContourValue )
103 { this->m_ContourValue = ContourValue; }
104
108 double
109 GetContourValue() const { return this->m_ContourValue; }
110
111
115 void
116 SetReverseContourOrientation(bool ReverseContourOrientation )
117 { this->m_ReverseContourOrientation = ReverseContourOrientation; }
118
120 void
122 void
127 bool
129
130
135 void
136 SetVertexConnectHighPixels(bool VertexConnectHighPixels )
137 { this->m_VertexConnectHighPixels = VertexConnectHighPixels; }
138
140 void
142 void
148 bool
150
151
155 void
156 SetLabelContours(bool LabelContours )
157 { this->m_LabelContours = LabelContours; }
158
160 void
161 LabelContoursOn() { return this->SetLabelContours(true); }
162 void
163 LabelContoursOff() { return this->SetLabelContours(false); }
167 bool
168 GetLabelContours() const { return this->m_LabelContours; }
169
170
177 unsigned int GetNumberOfCountours() const { return this->m_NumberOfCountours; }
178
186 std::vector<double> GetContour(unsigned int n)const { return this->m_pfGetContour(n); }
187
189 std::string GetName() const { return std::string("ContourExtractor2DImageFilter"); }
190
192 std::string ToString() const;
193
194
196 void Execute(const Image &image1);
197
198
199private:
201 using MemberFunctionType = void (Self::*)(const Image &image1);
202 template <class TImageType> void ExecuteInternal(const Image &image1);
205
206
207 double m_ContourValue{ 0.0 };
208
210
212
213 bool m_LabelContours{ false };
214
215
216
217 unsigned int m_NumberOfCountours{ 0 };
218 std::function<std::vector<double>(unsigned int)> m_pfGetContour;
219
220
221 // Holder of process object for active measurements
222 std::unique_ptr<itk::ProcessObject, ProcessObjectDeleter> m_Filter{nullptr};
223
224
225
226};
227
228
229}
230#endif
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void ExecuteInternal(const Image &image1)
std::function< std::vector< double >(unsigned int)> m_pfGetContour
std::vector< double > GetContour(unsigned int n) const
void SetReverseContourOrientation(bool ReverseContourOrientation)
std::unique_ptr< itk::ProcessObject, ProcessObjectDeleter > m_Filter
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
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