18#ifndef sitkIsolatedConnectedImageFilter_h
19#define sitkIsolatedConnectedImageFilter_h
91 { this->
m_Seed1 = std::move(Seed1); }
94 std::vector<unsigned int>
105 { this->
m_Seed2 = std::move(Seed2); }
108 std::vector<unsigned int>
204 std::string
GetName()
const {
return std::string(
"IsolatedConnectedImageFilter"); }
222 std::vector<unsigned int>
m_Seed1{ std::vector<unsigned int>(3, 0) };
224 std::vector<unsigned int>
m_Seed2{ std::vector<unsigned int>(3, 0) };
256 const Image &image1, std::vector<unsigned int> seed1 = std::vector<unsigned int>(3, 0), std::vector<unsigned int> seed2 = std::vector<unsigned int>(3, 0),
double lower = 0,
double upper = 1, uint8_t replaceValue = 1u,
double isolatedValueTolerance = 1.0,
bool findUpperThreshold =
true
The Image class for SimpleITK.
Image Execute(const Image &image1)
std::vector< unsigned int > m_Seed2
Image(Self::*)(const Image &image1) MemberFunctionType
bool GetFindUpperThreshold() const
double m_IsolatedValueTolerance
void SetFindUpperThreshold(bool FindUpperThreshold)
void SetIsolatedValueTolerance(double IsolatedValueTolerance)
Image ExecuteInternal(const Image &image1)
uint8_t GetReplaceValue() const
double GetIsolatedValue() const
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetSeed1(std::vector< unsigned int > Seed1)
bool m_FindUpperThreshold
double GetIsolatedValueTolerance() const
BasicPixelIDTypeList PixelIDTypeList
virtual ~IsolatedConnectedImageFilter()
void SetLower(double Lower)
void FindUpperThresholdOn()
std::string GetName() const
IsolatedConnectedImageFilter Self
void SetSeed2(std::vector< unsigned int > Seed2)
void SetReplaceValue(uint8_t ReplaceValue)
IsolatedConnectedImageFilter()
std::vector< unsigned int > GetSeed2() const
std::vector< unsigned int > GetSeed1() const
void FindUpperThresholdOff()
bool m_ThresholdingFailed
std::string ToString() const
std::vector< unsigned int > m_Seed1
void SetUpper(double Upper)
bool GetThresholdingFailed() const
A class used to instantiate and generate function object to templated member functions.
Image IsolatedConnected(const Image &image1, std::vector< unsigned int > seed1=std::vector< unsigned int >(3, 0), std::vector< unsigned int > seed2=std::vector< unsigned int >(3, 0), double lower=0, double upper=1, uint8_t replaceValue=1u, double isolatedValueTolerance=1.0, bool findUpperThreshold=true)
Label pixels that are connected to one set of seeds but not another.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT