SimpleITK  
sitkCollidingFrontsImageFilter.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 sitkCollidingFrontsImageFilter_h
19#define sitkCollidingFrontsImageFilter_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
61public:
63
66
70
73
74
75
76
81 void
82 SetSeedPoints1(std::vector< std::vector<unsigned int> > SeedPoints1 )
83 { this->m_SeedPoints1 = std::move(SeedPoints1); }
84
87 std::vector< std::vector< unsigned int > >
88 GetSeedPoints1() const { return this->m_SeedPoints1; }
90 void
91 AddSeedPoint1( std::vector< unsigned int > point ) { this->m_SeedPoints1.push_back(std::move(point));}
93 void
94 ClearSeedPoints1( ) { this->m_SeedPoints1.clear();}
95
96
101 void
102 SetSeedPoints2(std::vector< std::vector<unsigned int> > SeedPoints2 )
103 { this->m_SeedPoints2 = std::move(SeedPoints2); }
104
107 std::vector< std::vector< unsigned int > >
108 GetSeedPoints2() const { return this->m_SeedPoints2; }
110 void
111 AddSeedPoint2( std::vector< unsigned int > point ) { this->m_SeedPoints2.push_back(std::move(point));}
113 void
114 ClearSeedPoints2( ) { this->m_SeedPoints2.clear();}
115
116
119 void
120 SetApplyConnectivity(bool ApplyConnectivity )
121 { this->m_ApplyConnectivity = ApplyConnectivity; }
122
124 void
126 void
130 bool
132
133
136 void
137 SetNegativeEpsilon(double NegativeEpsilon )
138 { this->m_NegativeEpsilon = NegativeEpsilon; }
139
141 double
142 GetNegativeEpsilon() const { return this->m_NegativeEpsilon; }
143
144
147 void
148 SetStopOnTargets(bool StopOnTargets )
149 { this->m_StopOnTargets = StopOnTargets; }
150
152 void
153 StopOnTargetsOn() { return this->SetStopOnTargets(true); }
154 void
155 StopOnTargetsOff() { return this->SetStopOnTargets(false); }
158 bool
159 GetStopOnTargets() const { return this->m_StopOnTargets; }
160
161
163 std::string GetName() const { return std::string("CollidingFrontsImageFilter"); }
164
166 std::string ToString() const;
167
168
170 Image Execute(const Image &image1);
171
172
173private:
175 using MemberFunctionType = Image (Self::*)(const Image &image1);
176 template <class TImageType> Image ExecuteInternal(const Image &image1);
179
180
181 std::vector< std::vector<unsigned int> > m_SeedPoints1{ std::vector< std::vector<unsigned int > >() };
182
183 std::vector< std::vector<unsigned int> > m_SeedPoints2{ std::vector< std::vector<unsigned int > >() };
184
186
187 double m_NegativeEpsilon{ -1e-6 };
188
189 bool m_StopOnTargets{ false };
190
191
192
193
194
195
196
197};
198
199
209 const Image &image1, std::vector< std::vector<unsigned int> > seedPoints1 = std::vector< std::vector<unsigned int > >(), std::vector< std::vector<unsigned int> > seedPoints2 = std::vector< std::vector<unsigned int > >(), bool applyConnectivity = true, double negativeEpsilon = -1e-6, bool stopOnTargets = false
210);
211
213
214}
215#endif
std::vector< std::vector< unsigned int > > m_SeedPoints1
void ClearSeedPoints1()
Remove all SeedPoints1 points.
void SetSeedPoints1(std::vector< std::vector< unsigned int > > SeedPoints1)
void ClearSeedPoints2()
Remove all SeedPoints2 points.
std::vector< std::vector< unsigned int > > GetSeedPoints2() const
void SetSeedPoints2(std::vector< std::vector< unsigned int > > SeedPoints2)
std::vector< std::vector< unsigned int > > GetSeedPoints1() const
Image Execute(const Image &image1)
Image(Self::*)(const Image &image1) MemberFunctionType
std::vector< std::vector< unsigned int > > m_SeedPoints2
void AddSeedPoint2(std::vector< unsigned int > point)
Add SeedPoints2 point.
Image ExecuteInternal(const Image &image1)
void AddSeedPoint1(std::vector< unsigned int > point)
Add SeedPoints1 point.
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 CollidingFronts(const Image &image1, std::vector< std::vector< unsigned int > > seedPoints1=std::vector< std::vector< unsigned int > >(), std::vector< std::vector< unsigned int > > seedPoints2=std::vector< std::vector< unsigned int > >(), bool applyConnectivity=true, double negativeEpsilon=-1e-6, bool stopOnTargets=false)
Selects a region of space where two independent fronts run towards each other.
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