18 #ifndef sitkCollidingFrontsImageFilter_h
19 #define sitkCollidingFrontsImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetSeedPoints1 ( std::vector< std::vector<unsigned int> > SeedPoints1 ) { this->m_SeedPoints1 = std::move(SeedPoints1);
return *
this; }
74 std::vector< std::vector< unsigned int > >
GetSeedPoints1()
const {
return this->m_SeedPoints1; }
76 SITK_RETURN_SELF_TYPE_HEADER
AddSeedPoint1( std::vector< unsigned int >
point ) { this->m_SeedPoints1.push_back(std::move(
point));
return *
this;}
78 SITK_RETURN_SELF_TYPE_HEADER
ClearSeedPoints1( ) { this->m_SeedPoints1.clear();
return *
this;}
84 SITK_RETURN_SELF_TYPE_HEADER
SetSeedPoints2 ( std::vector< std::vector<unsigned int> > SeedPoints2 ) { this->m_SeedPoints2 = std::move(SeedPoints2);
return *
this; }
89 std::vector< std::vector< unsigned int > >
GetSeedPoints2()
const {
return this->m_SeedPoints2; }
91 SITK_RETURN_SELF_TYPE_HEADER
AddSeedPoint2( std::vector< unsigned int >
point ) { this->m_SeedPoints2.push_back(std::move(
point));
return *
this;}
93 SITK_RETURN_SELF_TYPE_HEADER
ClearSeedPoints2( ) { this->m_SeedPoints2.clear();
return *
this;}
98 SITK_RETURN_SELF_TYPE_HEADER
SetApplyConnectivity (
bool ApplyConnectivity ) { this->m_ApplyConnectivity = ApplyConnectivity;
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetNegativeEpsilon (
double NegativeEpsilon ) { this->m_NegativeEpsilon = NegativeEpsilon;
return *
this; }
118 SITK_RETURN_SELF_TYPE_HEADER
SetStopOnTargets (
bool StopOnTargets ) { this->m_StopOnTargets = StopOnTargets;
return *
this; }
121 SITK_RETURN_SELF_TYPE_HEADER
StopOnTargetsOn() {
return this->SetStopOnTargets(
true); }
129 std::string
GetName()
const {
return std::string (
"CollidingFrontsImageFilter"); }
132 std::string ToString()
const;
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
152 std::vector< std::vector<unsigned int> > m_SeedPoints1{std::vector< std::vector<unsigned int > >()};
154 std::vector< std::vector<unsigned int> > m_SeedPoints2{std::vector< std::vector<unsigned int > >()};
156 bool m_ApplyConnectivity{
true};
158 double m_NegativeEpsilon{-1e-6};
160 bool m_StopOnTargets{
false};
175 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 );