18 #ifndef sitkVectorConnectedComponentImageFilter_h
19 #define sitkVectorConnectedComponentImageFilter_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 (
"VectorConnectedComponentImageFilter"); }
81 std::string ToString()
const;
89 Image Execute (
const Image& image1,
double distanceThreshold,
bool fullyConnected );
95 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
96 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SetFullyConnected(bool FullyConnected)
Image VectorConnectedComponent(const Image &image1, double distanceThreshold=1.0, bool fullyConnected=false)
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
#define SITKBasicFilters_EXPORT
bool GetFullyConnected() const
Self & SetDistanceThreshold(double DistanceThreshold)
double m_DistanceThreshold
RealVectorPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOff()
The Image class for SimpleITK.
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
The base interface for SimpleITK filters that take one input image.
double GetDistanceThreshold() const
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
Self & FullyConnectedOn()
VectorConnectedComponentImageFilter Self
std::string GetName() const