18 #ifndef sitkCollidingFrontsImageFilter_h
19 #define sitkCollidingFrontsImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetSeedPoints1 ( std::vector< std::vector<unsigned int> > SeedPoints1 ) { this->m_SeedPoints1 = std::move(SeedPoints1);
return *
this; }
75 std::vector< std::vector< unsigned int > >
GetSeedPoints1()
const {
return this->m_SeedPoints1; }
77 SITK_RETURN_SELF_TYPE_HEADER
AddSeedPoint1( std::vector< unsigned int > point ) { this->m_SeedPoints1.push_back(std::move(point));
return *
this;}
79 SITK_RETURN_SELF_TYPE_HEADER
ClearSeedPoints1( ) { this->m_SeedPoints1.clear();
return *
this;}
85 SITK_RETURN_SELF_TYPE_HEADER
SetSeedPoints2 ( std::vector< std::vector<unsigned int> > SeedPoints2 ) { this->m_SeedPoints2 = std::move(SeedPoints2);
return *
this; }
90 std::vector< std::vector< unsigned int > >
GetSeedPoints2()
const {
return this->m_SeedPoints2; }
92 SITK_RETURN_SELF_TYPE_HEADER
AddSeedPoint2( std::vector< unsigned int > point ) { this->m_SeedPoints2.push_back(std::move(point));
return *
this;}
94 SITK_RETURN_SELF_TYPE_HEADER
ClearSeedPoints2( ) { this->m_SeedPoints2.clear();
return *
this;}
99 SITK_RETURN_SELF_TYPE_HEADER
SetApplyConnectivity (
bool ApplyConnectivity ) { this->m_ApplyConnectivity = ApplyConnectivity;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetNegativeEpsilon (
double NegativeEpsilon ) { this->m_NegativeEpsilon = NegativeEpsilon;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetStopOnTargets (
bool StopOnTargets ) { this->m_StopOnTargets = StopOnTargets;
return *
this; }
122 SITK_RETURN_SELF_TYPE_HEADER
StopOnTargetsOn() {
return this->SetStopOnTargets(
true); }
130 std::string
GetName()
const {
return std::string (
"CollidingFrontsImageFilter"); }
133 std::string ToString()
const;
145 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
153 std::vector< std::vector<unsigned int> > m_SeedPoints1{std::vector< std::vector<unsigned int > >()};
155 std::vector< std::vector<unsigned int> > m_SeedPoints2{std::vector< std::vector<unsigned int > >()};
157 bool m_ApplyConnectivity{
true};
159 double m_NegativeEpsilon{-1e-6};
161 bool m_StopOnTargets{
false};
176 SITKBasicFilters_EXPORT Image CollidingFronts (
const Image& image1, std::vector< std::vector<unsigned int> > seedPoints1 = std::vector< std::vector<unsigned int > >(), std::vector< std::vector<unsigned int> > seedPoints2 = std::vector< std::vector<unsigned int > >(),
bool applyConnectivity =
true,
double negativeEpsilon = -1e-6,
bool stopOnTargets =
false );