Go to the documentation of this file.
18 #ifndef sitkVectorConnectedComponentImageFilter_h
19 #define sitkVectorConnectedComponentImageFilter_h
58 SITK_RETURN_SELF_TYPE_HEADER
SetDistanceThreshold (
double DistanceThreshold ) { this->m_DistanceThreshold = DistanceThreshold;
return *
this; }
66 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
69 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
77 std::string
GetName()
const {
return std::string (
"VectorConnectedComponentImageFilter"); }
80 std::string ToString()
const;
92 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
97 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
100 double m_DistanceThreshold{1.0};
103 bool m_FullyConnected{
false};
The Image class for SimpleITK.
Self & FullyConnectedOn()
Self & SetDistanceThreshold(double DistanceThreshold)
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetFullyConnected(bool FullyConnected)
bool GetFullyConnected() const
#define SITKBasicFilters_EXPORT
RealVectorPixelIDTypeList PixelIDTypeList
typelist2::typelist< VectorPixelID< float >, VectorPixelID< double > > RealVectorPixelIDTypeList
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
A connected components filter that labels the objects in a vector image. Two vectors are pointing sim...
The base interface for SimpleITK filters that take one input image.
std::string GetName() const
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...
Self & FullyConnectedOff()
double GetDistanceThreshold() const