SimpleITK  
sitkFastMarchingBaseImageFilter.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 sitkFastMarchingBaseImageFilter_h
19#define sitkFastMarchingBaseImageFilter_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
99public:
101
104
108
111
112
113
114
119 void
120 SetTrialPoints(std::vector< std::vector<unsigned int> > TrialPoints )
121 { this->m_TrialPoints = std::move(TrialPoints); }
122
125 std::vector< std::vector< unsigned int > >
126 GetTrialPoints() const { return this->m_TrialPoints; }
128 void
129 AddTrialPoint( std::vector< unsigned int > point ) { this->m_TrialPoints.push_back(std::move(point));}
131 void
132 ClearTrialPoints( ) { this->m_TrialPoints.clear();}
133
134
139 void
140 SetNormalizationFactor(double NormalizationFactor )
141 { this->m_NormalizationFactor = NormalizationFactor; }
142
146 double
148
149
154 void
155 SetStoppingValue(double StoppingValue )
156 { this->m_StoppingValue = StoppingValue; }
157
160 double
161 GetStoppingValue() const { return this->m_StoppingValue; }
162
163 typedef enum { Nothing, NoHandles, Strict } TopologyCheckType;
164
167 void
170
172 TopologyCheckType
173 GetTopologyCheck() const { return this->m_TopologyCheck; }
174
175
179 void
180 SetInitialTrialValues(std::vector<double> InitialTrialValues )
181 { this->m_InitialTrialValues = InitialTrialValues; }
182
184 std::vector<double>
186
187
189 std::string GetName() const { return std::string("FastMarchingBaseImageFilter"); }
190
192 std::string ToString() const;
193
194
196 Image Execute(const Image &image1);
197
198
199private:
201 using MemberFunctionType = Image (Self::*)(const Image &image1);
202 template <class TImageType> Image ExecuteInternal(const Image &image1);
205
206
207 std::vector< std::vector<unsigned int> > m_TrialPoints{ std::vector< std::vector<unsigned int > >() };
208
210
211 double m_StoppingValue{ std::numeric_limits<float>::max()/2.0 };
212
214
215 std::vector<double> m_InitialTrialValues{ std::vector<double>() };
216
217
218
219
220
221
222
223};
224
225
235 const Image &image1, std::vector< std::vector<unsigned int> > trialPoints = std::vector< std::vector<unsigned int > >(), double normalizationFactor = 1.0, double stoppingValue = std::numeric_limits<float>::max()/2.0, FastMarchingBaseImageFilter::TopologyCheckType topologyCheck = itk::simple::FastMarchingBaseImageFilter::Nothing, std::vector<double> initialTrialValues = std::vector<double>()
236);
237
239
240}
241#endif
Image ExecuteInternal(const Image &image1)
void SetTopologyCheck(TopologyCheckType TopologyCheck)
void SetTrialPoints(std::vector< std::vector< unsigned int > > TrialPoints)
Image Execute(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image(Self::*)(const Image &image1) MemberFunctionType
void ClearTrialPoints()
Remove all TrialPoints points.
void AddTrialPoint(std::vector< unsigned int > point)
Add TrialPoints point.
std::vector< std::vector< unsigned int > > GetTrialPoints() const
std::vector< std::vector< unsigned int > > m_TrialPoints
void SetInitialTrialValues(std::vector< double > InitialTrialValues)
Set the initial seed values for corresponding trial point.
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
Image FastMarchingBase(const Image &image1, std::vector< std::vector< unsigned int > > trialPoints=std::vector< std::vector< unsigned int > >(), double normalizationFactor=1.0, double stoppingValue=std::numeric_limits< float >::max()/2.0, FastMarchingBaseImageFilter::TopologyCheckType topologyCheck=itk::simple::FastMarchingBaseImageFilter::Nothing, std::vector< double > initialTrialValues=std::vector< double >())
Apply the Fast Marching method to solve an Eikonal equation on an image.
#define SITKBasicFilters_EXPORT