18 #ifndef sitkScalarConnectedComponentImageFilter_h
19 #define sitkScalarConnectedComponentImageFilter_h
60 SITK_RETURN_SELF_TYPE_HEADER
SetDistanceThreshold (
double DistanceThreshold ) { this->m_DistanceThreshold = DistanceThreshold;
return *
this; }
68 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
71 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
78 std::string
GetName()
const {
return std::string (
"ScalarConnectedComponentImageFilter"); }
81 std::string ToString()
const;
90 Image Execute (
const Image & image,
const Image & maskImage,
double distanceThreshold,
bool fullyConnected );
91 Image Execute (
const Image & image,
double distanceThreshold,
bool fullyConnected );
97 typedef Image (Self::*MemberFunctionType)(
const Image * image,
const Image * maskImage );
98 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
#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
Image ScalarConnectedComponent(const Image &image, const Image &maskImage, double distanceThreshold=0.0, bool fullyConnected=false)
A connected components filter that labels the objects in an arbitrary image. Two pixels are similar i...
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 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