18 #ifndef sitkConfidenceConnectedImageFilter_h
19 #define sitkConfidenceConnectedImageFilter_h
64 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList);
return *
this; }
69 std::vector< std::vector< unsigned int > >
GetSeedList()
const {
return this->m_SeedList; }
71 SITK_RETURN_SELF_TYPE_HEADER
AddSeed( std::vector< unsigned int > point ) { this->m_SeedList.push_back(std::move(point));
return *
this;}
73 SITK_RETURN_SELF_TYPE_HEADER
ClearSeeds( ) { this->m_SeedList.clear();
return *
this;}
79 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfIterations (
unsigned int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetMultiplier (
double Multiplier ) { this->m_Multiplier = Multiplier;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetInitialNeighborhoodRadius (
unsigned int InitialNeighborhoodRadius ) { this->m_InitialNeighborhoodRadius = InitialNeighborhoodRadius;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue (
uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
121 double GetMean()
const {
return this->m_Mean; };
133 std::string
GetName()
const {
return std::string (
"ConfidenceConnectedImageFilter"); }
136 std::string ToString()
const;
148 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
156 std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
158 unsigned int m_NumberOfIterations{4u};
160 double m_Multiplier{4.5};
162 unsigned int m_InitialNeighborhoodRadius{1u};
169 double m_Variance{0.0};
184 SITKBasicFilters_EXPORT Image ConfidenceConnected (
const Image& image1, std::vector< std::vector<unsigned int> > seedList = std::vector< std::vector<unsigned int > >(),
unsigned int numberOfIterations = 4u,
double multiplier = 4.5,
unsigned int initialNeighborhoodRadius = 1u,
uint8_t replaceValue = 1u );