18 #ifndef sitkVectorConfidenceConnectedImageFilter_h
19 #define sitkVectorConfidenceConnectedImageFilter_h
65 SITK_RETURN_SELF_TYPE_HEADER
SetNumberOfIterations (
unsigned int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations;
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
SetMultiplier (
double Multiplier ) { this->m_Multiplier = Multiplier;
return *
this; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetInitialNeighborhoodRadius (
unsigned int InitialNeighborhoodRadius ) { this->m_InitialNeighborhoodRadius = InitialNeighborhoodRadius;
return *
this; }
95 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue (
uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
107 std::vector<double>
GetMean()
const {
return this->m_Mean; };
118 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList (
const std::vector< std::vector<unsigned int> > &t )
120 this->m_SeedList = t;
return *
this;
126 return this->m_SeedList;
132 this->m_SeedList.clear();
137 SITK_RETURN_SELF_TYPE_HEADER
SetSeed(
const std::vector<unsigned int> &idx )
139 this->m_SeedList.clear();
140 this->m_SeedList.push_back(idx);
145 SITK_RETURN_SELF_TYPE_HEADER
AddSeed(
const std::vector<unsigned int> &idx )
147 this->m_SeedList.push_back(idx);
152 std::string
GetName()
const {
return std::string (
"VectorConfidenceConnectedImageFilter"); }
155 std::string ToString()
const;
163 Image Execute (
const Image& image1,
const std::vector< std::vector<unsigned int> > &seedList,
unsigned int numberOfIterations,
double multiplier,
unsigned int initialNeighborhoodRadius,
uint8_t replaceValue );
169 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
170 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
double GetMultiplier() const
std::vector< double > GetCovariance() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & AddSeed(const std::vector< unsigned int > &idx)
#define SITKBasicFilters_EXPORT
std::vector< double > m_Covariance
unsigned int GetInitialNeighborhoodRadius() const
Self & SetMultiplier(double Multiplier)
std::vector< double > m_Mean
VectorConfidenceConnectedImageFilter Self
unsigned int m_InitialNeighborhoodRadius
unsigned int GetNumberOfIterations() const
std::vector< std::vector< unsigned int > > m_SeedList
std::vector< double > GetMean() const
std::vector< std::vector< unsigned int > > GetSeedList() const
The Image class for SimpleITK.
Self & SetNumberOfIterations(unsigned int NumberOfIterations)
std::string GetName() const
Self & SetSeedList(const std::vector< std::vector< unsigned int > > &t)
Segment pixels with similar statistics using connectivity.
uint8_t GetReplaceValue() const
unsigned int m_NumberOfIterations
VectorPixelIDTypeList PixelIDTypeList
typelist::MakeTypeList< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > >::Type VectorPixelIDTypeList
Image VectorConfidenceConnected(const Image &image1, const std::vector< std::vector< unsigned int > > &seedList, unsigned int numberOfIterations=4u, double multiplier=4.5, unsigned int initialNeighborhoodRadius=1u, uint8_t replaceValue=1u)
Self & SetReplaceValue(uint8_t ReplaceValue)
The base interface for SimpleITK filters that take one input image.
Self & SetInitialNeighborhoodRadius(unsigned int InitialNeighborhoodRadius)
Self & SetSeed(const std::vector< unsigned int > &idx)