SimpleITK  
sitkFastMarchingImageFilter.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 sitkFastMarchingImageFilter_h
19#define sitkFastMarchingImageFilter_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
95public:
97
100
104
107
108
109
110
115 void
116 SetTrialPoints(std::vector< std::vector<unsigned int> > TrialPoints )
117 { this->m_TrialPoints = std::move(TrialPoints); }
118
121 std::vector< std::vector< unsigned int > >
122 GetTrialPoints() const { return this->m_TrialPoints; }
124 void
125 AddTrialPoint( std::vector< unsigned int > point ) { this->m_TrialPoints.push_back(std::move(point));}
127 void
128 ClearTrialPoints( ) { this->m_TrialPoints.clear();}
129
130
135 void
136 SetNormalizationFactor(double NormalizationFactor )
137 { this->m_NormalizationFactor = NormalizationFactor; }
138
142 double
144
145
150 void
151 SetStoppingValue(double StoppingValue )
152 { this->m_StoppingValue = StoppingValue; }
153
156 double
157 GetStoppingValue() const { return this->m_StoppingValue; }
158
159
163 void
164 SetInitialTrialValues(std::vector<double> InitialTrialValues )
165 { this->m_InitialTrialValues = InitialTrialValues; }
166
168 std::vector<double>
170
171
173 std::string GetName() const { return std::string("FastMarchingImageFilter"); }
174
176 std::string ToString() const;
177
178
180 Image Execute(const Image &image1);
181
182
183private:
185 using MemberFunctionType = Image (Self::*)(const Image &image1);
186 template <class TImageType> Image ExecuteInternal(const Image &image1);
189
190
191 std::vector< std::vector<unsigned int> > m_TrialPoints{ std::vector< std::vector<unsigned int > >() };
192
194
195 double m_StoppingValue{ std::numeric_limits<double>::max()/2.0 };
196
197 std::vector<double> m_InitialTrialValues{ std::vector<double>() };
198
199
200
201
202
203
204
205};
206
207
217 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<double>::max()/2.0, std::vector<double> initialTrialValues = std::vector<double>()
218);
219
221
222}
223#endif
std::vector< std::vector< unsigned int > > m_TrialPoints
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetNormalizationFactor(double NormalizationFactor)
void SetInitialTrialValues(std::vector< double > InitialTrialValues)
Set the initial seed values for corresponding trial points.
void SetTrialPoints(std::vector< std::vector< unsigned int > > TrialPoints)
void AddTrialPoint(std::vector< unsigned int > point)
Add TrialPoints point.
std::vector< double > GetInitialTrialValues() const
void ClearTrialPoints()
Remove all TrialPoints points.
Image(Self::*)(const Image &image1) MemberFunctionType
std::vector< std::vector< unsigned int > > GetTrialPoints() const
Image Execute(const Image &image1)
Image ExecuteInternal(const Image &image1)
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image FastMarching(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< double >::max()/2.0, std::vector< double > initialTrialValues=std::vector< double >())
Solve an Eikonal equation using Fast Marching.
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