18 #ifndef sitkFastMarchingImageFilter_h
19 #define sitkFastMarchingImageFilter_h
86 SITK_RETURN_SELF_TYPE_HEADER
SetTrialPoints ( std::vector< std::vector<unsigned int> > TrialPoints ) { this->m_TrialPoints = std::move(TrialPoints);
return *
this; }
91 std::vector< std::vector< unsigned int > >
GetTrialPoints()
const {
return this->m_TrialPoints; }
93 SITK_RETURN_SELF_TYPE_HEADER
AddTrialPoint( std::vector< unsigned int >
point ) { this->m_TrialPoints.push_back(std::move(
point));
return *
this;}
95 SITK_RETURN_SELF_TYPE_HEADER
ClearTrialPoints( ) { this->m_TrialPoints.clear();
return *
this;}
101 SITK_RETURN_SELF_TYPE_HEADER
SetNormalizationFactor (
double NormalizationFactor ) { this->m_NormalizationFactor = NormalizationFactor;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetStoppingValue (
double StoppingValue ) { this->m_StoppingValue = StoppingValue;
return *
this; }
121 SITK_RETURN_SELF_TYPE_HEADER
SetInitialTrialValues ( std::vector<double> InitialTrialValues ) { this->m_InitialTrialValues = InitialTrialValues;
return *
this; }
128 std::string
GetName()
const {
return std::string (
"FastMarchingImageFilter"); }
131 std::string ToString()
const;
143 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
151 std::vector< std::vector<unsigned int> > m_TrialPoints{std::vector< std::vector<unsigned int > >()};
153 double m_NormalizationFactor{1.0};
155 double m_StoppingValue{std::numeric_limits<double>::max()/2.0};
157 std::vector<double> m_InitialTrialValues{std::vector<double>()};
172 SITKBasicFilters_EXPORT Image FastMarching (
const Image& image1, 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, std::vector<double> initialTrialValues = std::vector<double>() );