18 #ifndef sitkNeighborhoodConnectedImageFilter_h
19 #define sitkNeighborhoodConnectedImageFilter_h
59 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList);
return *
this; }
64 std::vector< std::vector< unsigned int > >
GetSeedList()
const {
return this->m_SeedList; }
66 SITK_RETURN_SELF_TYPE_HEADER
AddSeed( std::vector< unsigned int >
point ) { this->m_SeedList.push_back(std::move(
point));
return *
this;}
68 SITK_RETURN_SELF_TYPE_HEADER
ClearSeeds( ) { this->m_SeedList.clear();
return *
this;}
74 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
79 double GetLower()
const {
return this->m_Lower; }\
84 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
89 double GetUpper()
const {
return this->m_Upper; }\
94 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
102 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
107 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue (
double ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
115 std::string
GetName()
const {
return std::string (
"NeighborhoodConnectedImageFilter"); }
118 std::string ToString()
const;
130 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
138 std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
145 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
149 double m_ReplaceValue{1};
164 SITKBasicFilters_EXPORT Image NeighborhoodConnected (
const Image& image1, std::vector< std::vector<unsigned int> > seedList = std::vector< std::vector<unsigned int > >(),
double lower = 0,
double upper = 1, std::vector<unsigned int> radius = std::vector<unsigned int>(3, 1),
double replaceValue = 1 );