18 #ifndef sitkScalarConnectedComponentImageFilter_h
19 #define sitkScalarConnectedComponentImageFilter_h
64 SITK_RETURN_SELF_TYPE_HEADER
SetDistanceThreshold (
double DistanceThreshold ) { this->m_DistanceThreshold = DistanceThreshold;
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
82 std::string
GetName()
const {
return std::string (
"ScalarConnectedComponentImageFilter"); }
85 std::string ToString()
const;
93 Image Execute (
const Image& image1,
double distanceThreshold,
bool fullyConnected );
100 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
101 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Image ScalarConnectedComponent(const Image &image1, double distanceThreshold=0.0, bool fullyConnected=false)
A connected components filter that labels the objects in an arbitrary image. Two pixels are similar i...
#define SITKBasicFilters_EXPORT
Self & SetDistanceThreshold(double DistanceThreshold)
std::string GetName() const
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
A connected components filter that labels the objects in an arbitrary image. Two pixels are similar i...
Self & SetFullyConnected(bool FullyConnected)
Self & FullyConnectedOn()
ScalarConnectedComponentImageFilter Self
The main Image class for SimpleITK.
bool GetFullyConnected() const
double m_DistanceThreshold
Self & FullyConnectedOff()
double GetDistanceThreshold() const
BasicPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory