18 #ifndef sitkFastMarchingImageFilter_h
19 #define sitkFastMarchingImageFilter_h
87 SITK_RETURN_SELF_TYPE_HEADER
SetTrialPoints (
const std::vector< std::vector<unsigned int> >& TrialPoints ) { this->m_TrialPoints = TrialPoints;
return *
this; }
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;}
102 SITK_RETURN_SELF_TYPE_HEADER
SetNormalizationFactor (
double NormalizationFactor ) { this->m_NormalizationFactor = NormalizationFactor;
return *
this; }
112 SITK_RETURN_SELF_TYPE_HEADER
SetStoppingValue (
double StoppingValue ) { this->m_StoppingValue = StoppingValue;
return *
this; }
119 std::string
GetName()
const {
return std::string (
"FastMarchingImageFilter"); }
122 std::string ToString()
const;
130 Image Execute (
const Image& image1,
const std::vector< std::vector<unsigned int> > & trialPoints,
double normalizationFactor,
double stoppingValue );
137 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
138 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
162 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 );
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
Self & SetStoppingValue(double StoppingValue)
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)
BasicPixelIDTypeList PixelIDTypeList
Self & SetTrialPoints(const std::vector< std::vector< unsigned int > > &TrialPoints)
std::string GetName() const
std::vector< std::vector< unsigned int > > m_TrialPoints
std::vector< std::vector< unsigned int > > GetTrialPoints() const
double GetStoppingValue() const
Solve an Eikonal equation using Fast Marching.
The main Image class for SimpleITK.
double m_NormalizationFactor
double GetNormalizationFactor() const
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.
FastMarchingImageFilter Self