SimpleITK  2.0.0
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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
53  public:
55 
57  virtual ~CollidingFrontsImageFilter();
58 
62 
65 \
66 
70  SITK_RETURN_SELF_TYPE_HEADER SetSeedPoints1 ( std::vector< std::vector<unsigned int> > SeedPoints1 ) { this->m_SeedPoints1 = std::move(SeedPoints1); return *this; }
71 
75  std::vector< std::vector< unsigned int > > GetSeedPoints1() const { return this->m_SeedPoints1; }
77  SITK_RETURN_SELF_TYPE_HEADER AddSeedPoint1( std::vector< unsigned int > point ) { this->m_SeedPoints1.push_back(std::move(point)); return *this;}
79  SITK_RETURN_SELF_TYPE_HEADER ClearSeedPoints1( ) { this->m_SeedPoints1.clear(); return *this;}
80 \
81 
85  SITK_RETURN_SELF_TYPE_HEADER SetSeedPoints2 ( std::vector< std::vector<unsigned int> > SeedPoints2 ) { this->m_SeedPoints2 = std::move(SeedPoints2); return *this; }
86 
90  std::vector< std::vector< unsigned int > > GetSeedPoints2() const { return this->m_SeedPoints2; }
92  SITK_RETURN_SELF_TYPE_HEADER AddSeedPoint2( std::vector< unsigned int > point ) { this->m_SeedPoints2.push_back(std::move(point)); return *this;}
94  SITK_RETURN_SELF_TYPE_HEADER ClearSeedPoints2( ) { this->m_SeedPoints2.clear(); return *this;}
95 \
96 
99  SITK_RETURN_SELF_TYPE_HEADER SetApplyConnectivity ( bool ApplyConnectivity ) { this->m_ApplyConnectivity = ApplyConnectivity; return *this; }
100 
102  SITK_RETURN_SELF_TYPE_HEADER ApplyConnectivityOn() { return this->SetApplyConnectivity(true); }
103  SITK_RETURN_SELF_TYPE_HEADER ApplyConnectivityOff() { return this->SetApplyConnectivity(false); }
104 
107  bool GetApplyConnectivity() const { return this->m_ApplyConnectivity; }\
108 
111  SITK_RETURN_SELF_TYPE_HEADER SetNegativeEpsilon ( double NegativeEpsilon ) { this->m_NegativeEpsilon = NegativeEpsilon; return *this; }
112 
115  double GetNegativeEpsilon() const { return this->m_NegativeEpsilon; }\
116 
119  SITK_RETURN_SELF_TYPE_HEADER SetStopOnTargets ( bool StopOnTargets ) { this->m_StopOnTargets = StopOnTargets; return *this; }
120 
122  SITK_RETURN_SELF_TYPE_HEADER StopOnTargetsOn() { return this->SetStopOnTargets(true); }
123  SITK_RETURN_SELF_TYPE_HEADER StopOnTargetsOff() { return this->SetStopOnTargets(false); }
124 
127  bool GetStopOnTargets() const { return this->m_StopOnTargets; }
128 
130  std::string GetName() const { return std::string ("CollidingFrontsImageFilter"); }
131 
133  std::string ToString() const;
134 
135 
138  Image Execute ( const Image& image1 );
139 
140  private:
141 
144  using MemberFunctionType = Image (Self::*)( const Image& image1 );
145  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
146 
147 
149 
150  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
151 
152 
153  std::vector< std::vector<unsigned int> > m_SeedPoints1{std::vector< std::vector<unsigned int > >()};
154 
155  std::vector< std::vector<unsigned int> > m_SeedPoints2{std::vector< std::vector<unsigned int > >()};
156 
157  bool m_ApplyConnectivity{true};
158 
159  double m_NegativeEpsilon{-1e-6};
160 
161  bool m_StopOnTargets{false};
162 
163 
164  };
165 
176  SITKBasicFilters_EXPORT 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 );
177 
179  }
180 }
181 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
itk::simple::CollidingFrontsImageFilter::ApplyConnectivityOn
Self & ApplyConnectivityOn()
Definition: sitkCollidingFrontsImageFilter.h:102
sitkBasicFilters.h
itk::simple::CollidingFrontsImageFilter::ApplyConnectivityOff
Self & ApplyConnectivityOff()
Definition: sitkCollidingFrontsImageFilter.h:103
itk::simple::CollidingFronts
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.
itk::simple::CollidingFrontsImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkCollidingFrontsImageFilter.h:144
itk::simple::CollidingFrontsImageFilter::GetSeedPoints1
std::vector< std::vector< unsigned int > > GetSeedPoints1() const
Definition: sitkCollidingFrontsImageFilter.h:75
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::CollidingFrontsImageFilter::StopOnTargetsOn
Self & StopOnTargetsOn()
Definition: sitkCollidingFrontsImageFilter.h:122
itk::simple::CollidingFrontsImageFilter::SetNegativeEpsilon
Self & SetNegativeEpsilon(double NegativeEpsilon)
Definition: sitkCollidingFrontsImageFilter.h:111
itk::simple::CollidingFrontsImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkCollidingFrontsImageFilter.h:64
itk::simple::CollidingFrontsImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkCollidingFrontsImageFilter.h:150
itk::simple::CollidingFrontsImageFilter::StopOnTargetsOff
Self & StopOnTargetsOff()
Definition: sitkCollidingFrontsImageFilter.h:123
itk::simple::CollidingFrontsImageFilter::SetSeedPoints1
Self & SetSeedPoints1(std::vector< std::vector< unsigned int > > SeedPoints1)
Definition: sitkCollidingFrontsImageFilter.h:70
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::CollidingFrontsImageFilter::SetApplyConnectivity
Self & SetApplyConnectivity(bool ApplyConnectivity)
Definition: sitkCollidingFrontsImageFilter.h:99
itk::simple::CollidingFrontsImageFilter::SetStopOnTargets
Self & SetStopOnTargets(bool StopOnTargets)
Definition: sitkCollidingFrontsImageFilter.h:119
itk::simple::CollidingFrontsImageFilter
Selects a region of space where two independent fronts run towards each other.
Definition: sitkCollidingFrontsImageFilter.h:52
itk::simple::CollidingFrontsImageFilter::ClearSeedPoints2
Self & ClearSeedPoints2()
Remove all SeedPoints2 points.
Definition: sitkCollidingFrontsImageFilter.h:94
itk::simple::CollidingFrontsImageFilter::GetStopOnTargets
bool GetStopOnTargets() const
Definition: sitkCollidingFrontsImageFilter.h:127
itk::simple::CollidingFrontsImageFilter::SetSeedPoints2
Self & SetSeedPoints2(std::vector< std::vector< unsigned int > > SeedPoints2)
Definition: sitkCollidingFrontsImageFilter.h:85
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::CollidingFrontsImageFilter::ClearSeedPoints1
Self & ClearSeedPoints1()
Remove all SeedPoints1 points.
Definition: sitkCollidingFrontsImageFilter.h:79
itk::simple::CollidingFrontsImageFilter::AddSeedPoint1
Self & AddSeedPoint1(std::vector< unsigned int > point)
Add SeedPoints1 point.
Definition: sitkCollidingFrontsImageFilter.h:77
itk::simple::CollidingFrontsImageFilter::AddSeedPoint2
Self & AddSeedPoint2(std::vector< unsigned int > point)
Add SeedPoints2 point.
Definition: sitkCollidingFrontsImageFilter.h:92
itk
itk::simple::CollidingFrontsImageFilter::GetApplyConnectivity
bool GetApplyConnectivity() const
Definition: sitkCollidingFrontsImageFilter.h:107
itk::simple::CollidingFrontsImageFilter::GetNegativeEpsilon
double GetNegativeEpsilon() const
Definition: sitkCollidingFrontsImageFilter.h:115
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::CollidingFrontsImageFilter::GetSeedPoints2
std::vector< std::vector< unsigned int > > GetSeedPoints2() const
Definition: sitkCollidingFrontsImageFilter.h:90
itk::simple::CollidingFrontsImageFilter::GetName
std::string GetName() const
Definition: sitkCollidingFrontsImageFilter.h:130
itk::Image
Definition: sitkPixelIDTypes.h:26