18 #ifndef sitkFastMarchingUpwindGradientImageFilter_h
19 #define sitkFastMarchingUpwindGradientImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetTrialPoints (
const std::vector< std::vector<unsigned int> >& TrialPoints ) { this->m_TrialPoints = TrialPoints;
return *
this; }
74 std::vector< std::vector< unsigned int > >
GetTrialPoints()
const {
return this->m_TrialPoints; }
76 SITK_RETURN_SELF_TYPE_HEADER
AddTrialPoint(
const std::vector< unsigned int > &point ) { this->m_TrialPoints.push_back(point);
return *
this;}
78 SITK_RETURN_SELF_TYPE_HEADER
ClearTrialPoints( ) { this->m_TrialPoints.clear();
return *
this;}
83 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfTargets (
unsigned int NumberOfTargets ) { this->m_NumberOfTargets = NumberOfTargets;
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetTargetPoints (
const std::vector< std::vector<unsigned int> >& TargetPoints ) { this->m_TargetPoints = TargetPoints;
return *
this; }
98 std::vector< std::vector< unsigned int > >
GetTargetPoints()
const {
return this->m_TargetPoints; }
100 SITK_RETURN_SELF_TYPE_HEADER
AddTargetPoint(
const std::vector< unsigned int > &point ) { this->m_TargetPoints.push_back(point);
return *
this;}
102 SITK_RETURN_SELF_TYPE_HEADER
ClearTargetPoints( ) { this->m_TargetPoints.clear();
return *
this;}
108 SITK_RETURN_SELF_TYPE_HEADER
SetTargetOffset (
double TargetOffset ) { this->m_TargetOffset = TargetOffset;
return *
this; }
118 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;
152 Image Execute (
const Image& image1,
const std::vector< std::vector<unsigned int> > & trialPoints,
unsigned int numberOfTargets,
const std::vector< std::vector<unsigned int> > & targetPoints,
double targetOffset,
double normalizationFactor );
158 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
159 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
188 SITKBasicFilters_EXPORT Image FastMarchingUpwindGradient (
const Image& image1,
const std::vector< std::vector<unsigned int> > & trialPoints = std::vector< std::vector<unsigned int > >(),
unsigned int numberOfTargets = 0u,
const std::vector< std::vector<unsigned int> > & targetPoints = std::vector< std::vector<unsigned int > >(),
double targetOffset = 1,
double normalizationFactor = 1.0 );
Self & AddTargetPoint(const std::vector< unsigned int > &point)
Add TargetPoints point.
unsigned int m_NumberOfTargets
double GetTargetValue() const
Self & AddTrialPoint(const std::vector< unsigned int > &point)
Add TrialPoints point.
#define SITKBasicFilters_EXPORT
Generates the upwind gradient field of fast marching arrival times.
double GetTargetOffset() 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
std::vector< std::vector< unsigned int > > m_TargetPoints
Self & SetTrialPoints(const std::vector< std::vector< unsigned int > > &TrialPoints)
unsigned int GetNumberOfTargets() const
std::vector< std::vector< unsigned int > > GetTrialPoints() const
Image FastMarchingUpwindGradient(const Image &image1, const std::vector< std::vector< unsigned int > > &trialPoints=std::vector< std::vector< unsigned int > >(), unsigned int numberOfTargets=0u, const std::vector< std::vector< unsigned int > > &targetPoints=std::vector< std::vector< unsigned int > >(), double targetOffset=1, double normalizationFactor=1.0)
Generates the upwind gradient field of fast marching arrival times.
std::vector< std::vector< unsigned int > > m_TrialPoints
Self & SetNumberOfTargets(unsigned int NumberOfTargets)
Self & ClearTargetPoints()
Remove all TargetPoints points.
double GetNormalizationFactor() const
std::string GetName() const
Image GetGradientImage() const
The Image class for SimpleITK.
FastMarchingUpwindGradientImageFilter Self
Self & ClearTrialPoints()
Remove all TrialPoints points.
Self & SetNormalizationFactor(double NormalizationFactor)
BasicPixelIDTypeList PixelIDTypeList
Self & SetTargetOffset(double TargetOffset)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< std::vector< unsigned int > > GetTargetPoints() const
double m_NormalizationFactor
The base interface for SimpleITK filters that take one input image.
Self & SetTargetPoints(const std::vector< std::vector< unsigned int > > &TargetPoints)