Go to the documentation of this file.
18 #ifndef sitkVectorConnectedComponentImageFilter_h
19 #define sitkVectorConnectedComponentImageFilter_h
59 SITK_RETURN_SELF_TYPE_HEADER
SetDistanceThreshold (
double DistanceThreshold ) { this->m_DistanceThreshold = DistanceThreshold;
return *
this; }
67 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
70 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
78 std::string
GetName()
const {
return std::string (
"VectorConnectedComponentImageFilter"); }
81 std::string ToString()
const;
93 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
98 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
101 double m_DistanceThreshold{1.0};
104 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
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
typelist::MakeTypeList< VectorPixelID< float >, VectorPixelID< double > >::Type RealVectorPixelIDTypeList
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