SimpleITK  1.0.1
sitkCollidingFrontsImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
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 
59 
62 
65 
66 
67 
71  SITK_RETURN_SELF_TYPE_HEADER SetSeedPoints1 ( const std::vector< std::vector<unsigned int> >& SeedPoints1 ) { this->m_SeedPoints1 = SeedPoints1; return *this; }
72 
76  std::vector< std::vector<unsigned int> > GetSeedPoints1() const { return this->m_SeedPoints1; }
78  SITK_RETURN_SELF_TYPE_HEADER AddSeedPoint1( const std::vector< unsigned int > &point ) { this->m_SeedPoints1.push_back(point); return *this;}
80  SITK_RETURN_SELF_TYPE_HEADER ClearSeedPoints1( ) { this->m_SeedPoints1.clear(); return *this;}
81 
82 
86  SITK_RETURN_SELF_TYPE_HEADER SetSeedPoints2 ( const std::vector< std::vector<unsigned int> >& SeedPoints2 ) { this->m_SeedPoints2 = SeedPoints2; return *this; }
87 
91  std::vector< std::vector<unsigned int> > GetSeedPoints2() const { return this->m_SeedPoints2; }
93  SITK_RETURN_SELF_TYPE_HEADER AddSeedPoint2( const std::vector< unsigned int > &point ) { this->m_SeedPoints2.push_back(point); return *this;}
95  SITK_RETURN_SELF_TYPE_HEADER ClearSeedPoints2( ) { this->m_SeedPoints2.clear(); return *this;}
96 
97 
100  SITK_RETURN_SELF_TYPE_HEADER SetApplyConnectivity ( bool ApplyConnectivity ) { this->m_ApplyConnectivity = ApplyConnectivity; return *this; }
101 
103  SITK_RETURN_SELF_TYPE_HEADER ApplyConnectivityOn() { return this->SetApplyConnectivity(true); }
104  SITK_RETURN_SELF_TYPE_HEADER ApplyConnectivityOff() { return this->SetApplyConnectivity(false); }
105 
108  bool GetApplyConnectivity() const { return this->m_ApplyConnectivity; }
109 
112  SITK_RETURN_SELF_TYPE_HEADER SetNegativeEpsilon ( double NegativeEpsilon ) { this->m_NegativeEpsilon = NegativeEpsilon; return *this; }
113 
116  double GetNegativeEpsilon() const { return this->m_NegativeEpsilon; }
117 
120  SITK_RETURN_SELF_TYPE_HEADER SetStopOnTargets ( bool StopOnTargets ) { this->m_StopOnTargets = StopOnTargets; return *this; }
121 
123  SITK_RETURN_SELF_TYPE_HEADER StopOnTargetsOn() { return this->SetStopOnTargets(true); }
124  SITK_RETURN_SELF_TYPE_HEADER StopOnTargetsOff() { return this->SetStopOnTargets(false); }
125 
128  bool GetStopOnTargets() const { return this->m_StopOnTargets; }
130  std::string GetName() const { return std::string ("CollidingFrontsImageFilter"); }
131 
133  std::string ToString() const;
134 
135 
137  Image Execute ( const Image& image1 );
138 
139 
141  Image Execute ( const Image& image1, const std::vector< std::vector<unsigned int> > & seedPoints1, const std::vector< std::vector<unsigned int> > & seedPoints2, bool applyConnectivity, double negativeEpsilon, bool stopOnTargets );
142 
143 
144  private:
145 
148  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
149  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
150 
151 
152 
153  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
154 
155  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
156 
157 
158  std::vector< std::vector<unsigned int> > m_SeedPoints1;
159  std::vector< std::vector<unsigned int> > m_SeedPoints2;
163  };
164 
165 
166 
175  SITKBasicFilters_EXPORT Image CollidingFronts ( const Image& image1, const std::vector< std::vector<unsigned int> > & seedPoints1 = std::vector< std::vector<unsigned int > >(), const std::vector< std::vector<unsigned int> > & seedPoints2 = std::vector< std::vector<unsigned int > >(), bool applyConnectivity = true, double negativeEpsilon = -1e-6, bool stopOnTargets = false );
176 
177  }
178 }
179 #endif
Self & AddSeedPoint1(const std::vector< unsigned int > &point)
Add SeedPoints1 point.
#define SITKBasicFilters_EXPORT
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
Self & ClearSeedPoints2()
Remove all SeedPoints2 points.
std::vector< std::vector< unsigned int > > m_SeedPoints1
Self & SetSeedPoints1(const std::vector< std::vector< unsigned int > > &SeedPoints1)
Self & AddSeedPoint2(const std::vector< unsigned int > &point)
Add SeedPoints2 point.
The main Image class for SimpleITK.
Definition: sitkImage.h:54
Self & ClearSeedPoints1()
Remove all SeedPoints1 points.
std::vector< std::vector< unsigned int > > GetSeedPoints1() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< std::vector< unsigned int > > GetSeedPoints2() const
Image CollidingFronts(const Image &image1, const std::vector< std::vector< unsigned int > > &seedPoints1=std::vector< std::vector< unsigned int > >(), const 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.
std::vector< std::vector< unsigned int > > m_SeedPoints2
Self & SetSeedPoints2(const std::vector< std::vector< unsigned int > > &SeedPoints2)
Selects a region of space where two independent fronts run towards each other.
The base interface for SimpleITK filters that take one input image.