18 #ifndef sitkConnectedThresholdImageFilter_h
19 #define sitkConnectedThresholdImageFilter_h
61 SITK_RETURN_SELF_TYPE_HEADER
SetLower (
double Lower ) { this->m_Lower = Lower;
return *
this; }
66 double GetLower()
const {
return this->m_Lower; }
71 SITK_RETURN_SELF_TYPE_HEADER
SetUpper (
double Upper ) { this->m_Upper = Upper;
return *
this; }
76 double GetUpper()
const {
return this->m_Upper; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetReplaceValue (
uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue;
return *
this; }
88 typedef enum {FaceConnectivity,FullConnectivity} ConnectivityType;
100 SITK_RETURN_SELF_TYPE_HEADER
SetSeedList (
const std::vector< std::vector<unsigned int> > &t )
102 this->m_SeedList = t;
return *
this;
108 return this->m_SeedList;
114 this->m_SeedList.clear();
119 SITK_RETURN_SELF_TYPE_HEADER
SetSeed(
const std::vector<unsigned int> &idx )
121 this->m_SeedList.clear();
122 this->m_SeedList.push_back(idx);
127 SITK_RETURN_SELF_TYPE_HEADER
AddSeed(
const std::vector<unsigned int> &idx )
129 this->m_SeedList.push_back(idx);
134 std::string
GetName()
const {
return std::string (
"ConnectedThresholdImageFilter"); }
137 std::string ToString()
const;
151 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
152 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::vector< std::vector< unsigned int > > m_SeedList
ConnectivityType m_Connectivity
#define SITKBasicFilters_EXPORT
Image ConnectedThreshold(const Image &image1, const std::vector< std::vector< unsigned int > > &seedList, double lower=0, double upper=1, uint8_t replaceValue=1u, ConnectedThresholdImageFilter::ConnectivityType connectivity=itk::simple::ConnectedThresholdImageFilter::FaceConnectivity)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Self & SetUpper(double Upper)
Self & AddSeed(const std::vector< unsigned int > &idx)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< std::vector< unsigned int > > GetSeedList() const
std::string GetName() const
ConnectivityType GetConnectivity() const
BasicPixelIDTypeList PixelIDTypeList
Self & SetLower(double Lower)
The main Image class for SimpleITK.
ConnectedThresholdImageFilter Self
Self & SetSeedList(const std::vector< std::vector< unsigned int > > &t)
Self & SetConnectivity(ConnectivityType Connectivity)
Self & SetReplaceValue(uint8_t ReplaceValue)
uint8_t GetReplaceValue() const
Label pixels that are connected to a seed and lie within a range of values.
The base interface for SimpleITK filters that take one input image.
Self & SetSeed(const std::vector< unsigned int > &idx)