18 #ifndef sitkNeighborhoodConnectedImageFilter_h
19 #define sitkNeighborhoodConnectedImageFilter_h
60 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList);
return *
this; }
65 std::vector< std::vector< unsigned int > >
GetSeedList()
const {
return this->m_SeedList; }
67 SITK_RETURN_SELF_TYPE_HEADER
AddSeed( std::vector< unsigned int > point ) { this->m_SeedList.push_back(std::move(point));
return *
this;}
69 SITK_RETURN_SELF_TYPE_HEADER
ClearSeeds( ) { this->m_SeedList.clear();
return *
this;}
75 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
80 double GetLower()
const {
return this->m_Lower; }\
85 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
90 double GetUpper()
const {
return this->m_Upper; }\
95 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
103 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
108 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue (
double ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
116 std::string
GetName()
const {
return std::string (
"NeighborhoodConnectedImageFilter"); }
119 std::string ToString()
const;
131 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
139 std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
146 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
150 double m_ReplaceValue{1};
165 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 );