18 #ifndef sitkVectorConfidenceConnectedImageFilter_h
19 #define sitkVectorConfidenceConnectedImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList);
return *
this; }
68 std::vector< std::vector< unsigned int > >
GetSeedList()
const {
return this->m_SeedList; }
70 SITK_RETURN_SELF_TYPE_HEADER
AddSeed( std::vector< unsigned int >
point ) { this->m_SeedList.push_back(std::move(
point));
return *
this;}
72 SITK_RETURN_SELF_TYPE_HEADER
ClearSeeds( ) { this->m_SeedList.clear();
return *
this;}
78 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfIterations (
unsigned int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations;
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetMultiplier (
double Multiplier ) { this->m_Multiplier = Multiplier;
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
SetInitialNeighborhoodRadius (
unsigned int InitialNeighborhoodRadius ) { this->m_InitialNeighborhoodRadius = InitialNeighborhoodRadius;
return *
this; }
108 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
120 std::vector<double>
GetMean()
const {
return this->m_Mean; };
132 std::string
GetName()
const {
return std::string (
"VectorConfidenceConnectedImageFilter"); }
135 std::string ToString()
const;
147 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
155 std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
157 unsigned int m_NumberOfIterations{4u};
159 double m_Multiplier{4.5};
161 unsigned int m_InitialNeighborhoodRadius{1u};
163 uint8_t m_ReplaceValue{1u};
166 std::vector<double> m_Mean{std::vector<double>()};
168 std::vector<double> m_Covariance{std::vector<double>()};
183 SITKBasicFilters_EXPORT Image VectorConfidenceConnected (
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 );