18 #ifndef sitkFastMarchingUpwindGradientImageFilter_h
19 #define sitkFastMarchingUpwindGradientImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetTrialPoints ( std::vector< std::vector<unsigned int> > TrialPoints ) { this->m_TrialPoints = std::move(TrialPoints);
return *
this; }
73 std::vector< std::vector< unsigned int > >
GetTrialPoints()
const {
return this->m_TrialPoints; }
75 SITK_RETURN_SELF_TYPE_HEADER
AddTrialPoint( std::vector< unsigned int > point ) { this->m_TrialPoints.push_back(std::move(point));
return *
this;}
77 SITK_RETURN_SELF_TYPE_HEADER
ClearTrialPoints( ) { this->m_TrialPoints.clear();
return *
this;}
82 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfTargets (
unsigned int NumberOfTargets ) { this->m_NumberOfTargets = NumberOfTargets;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetTargetPoints ( std::vector< std::vector<unsigned int> > TargetPoints ) { this->m_TargetPoints = std::move(TargetPoints);
return *
this; }
97 std::vector< std::vector< unsigned int > >
GetTargetPoints()
const {
return this->m_TargetPoints; }
99 SITK_RETURN_SELF_TYPE_HEADER
AddTargetPoint( std::vector< unsigned int > point ) { this->m_TargetPoints.push_back(std::move(point));
return *
this;}
101 SITK_RETURN_SELF_TYPE_HEADER
ClearTargetPoints( ) { this->m_TargetPoints.clear();
return *
this;}
107 SITK_RETURN_SELF_TYPE_HEADER
SetTargetOffset (
double TargetOffset ) { this->m_TargetOffset = TargetOffset;
return *
this; }
117 SITK_RETURN_SELF_TYPE_HEADER
SetNormalizationFactor (
double NormalizationFactor ) { this->m_NormalizationFactor = NormalizationFactor;
return *
this; }
141 std::string
GetName()
const {
return std::string (
"FastMarchingUpwindGradientImageFilter"); }
144 std::string ToString()
const;
156 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
164 std::vector< std::vector<unsigned int> > m_TrialPoints{std::vector< std::vector<unsigned int > >()};
166 unsigned int m_NumberOfTargets{0u};
168 std::vector< std::vector<unsigned int> > m_TargetPoints{std::vector< std::vector<unsigned int > >()};
170 double m_TargetOffset{1.0};
172 double m_NormalizationFactor{1.0};
177 double m_TargetValue{0.0};
192 SITKBasicFilters_EXPORT Image FastMarchingUpwindGradient (
const Image& image1, std::vector< std::vector<unsigned int> > trialPoints = std::vector< std::vector<unsigned int > >(),
unsigned int numberOfTargets = 0u, std::vector< std::vector<unsigned int> > targetPoints = std::vector< std::vector<unsigned int > >(),
double targetOffset = 1.0,
double normalizationFactor = 1.0 );