SimpleITK  1.3.0.dev466
sitkFastMarchingImageFilter.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 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.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 
69  public:
71 
73  virtual ~FastMarchingImageFilter();
74 
78 
81 
82 
83 
87  SITK_RETURN_SELF_TYPE_HEADER SetTrialPoints ( const std::vector< std::vector<unsigned int> >& TrialPoints ) { this->m_TrialPoints = TrialPoints; return *this; }
88 
92  std::vector< std::vector< unsigned int > > GetTrialPoints() const { return this->m_TrialPoints; }
94  SITK_RETURN_SELF_TYPE_HEADER AddTrialPoint( const std::vector< unsigned int > &point ) { this->m_TrialPoints.push_back(point); return *this;}
96  SITK_RETURN_SELF_TYPE_HEADER ClearTrialPoints( ) { this->m_TrialPoints.clear(); return *this;}
97 
98 
102  SITK_RETURN_SELF_TYPE_HEADER SetNormalizationFactor ( double NormalizationFactor ) { this->m_NormalizationFactor = NormalizationFactor; return *this; }
103 
107  double GetNormalizationFactor() const { return this->m_NormalizationFactor; }
108 
112  SITK_RETURN_SELF_TYPE_HEADER SetStoppingValue ( double StoppingValue ) { this->m_StoppingValue = StoppingValue; return *this; }
113 
117  double GetStoppingValue() const { return this->m_StoppingValue; }
119  std::string GetName() const { return std::string ("FastMarchingImageFilter"); }
120 
122  std::string ToString() const;
123 
124 
126  Image Execute ( const Image& image1 );
127 
128 
130  Image Execute ( const Image& image1, const std::vector< std::vector<unsigned int> > & trialPoints, double normalizationFactor, double stoppingValue );
131 
132  private:
133 
136  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
137  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
138 
139 
140  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
141 
142  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
143 
144 
145  std::vector< std::vector<unsigned int> > m_TrialPoints;
148  };
149 
150 
159  SITKBasicFilters_EXPORT Image FastMarching ( const Image& image1, const 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 );
160 
161  }
162 }
163 #endif
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
std::vector< std::vector< unsigned int > > GetTrialPoints() const
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
Image FastMarching(const Image &image1, const 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)
Solve an Eikonal equation using Fast Marching.
Self & SetNormalizationFactor(double NormalizationFactor)
Self & SetTrialPoints(const std::vector< std::vector< unsigned int > > &TrialPoints)
std::vector< std::vector< unsigned int > > m_TrialPoints
Solve an Eikonal equation using Fast Marching.
The Image class for SimpleITK.
Definition: sitkImage.h:78
The base interface for SimpleITK filters that take one input image.
Self & ClearTrialPoints()
Remove all TrialPoints points.
Self & AddTrialPoint(const std::vector< unsigned int > &point)
Add TrialPoints point.