Go to the documentation of this file.
18 #ifndef sitkScalarConnectedComponentImageFilter_h
19 #define sitkScalarConnectedComponentImageFilter_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 (
"ScalarConnectedComponentImageFilter"); }
81 std::string ToString()
const;
94 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
99 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
102 double m_DistanceThreshold{0.0};
105 bool m_FullyConnected{
false};
The Image class for SimpleITK.
bool GetFullyConnected() const
Image(Self::*)(const Image *image, const Image *maskImage) MemberFunctionType
Self & SetDistanceThreshold(double DistanceThreshold)
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...
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOn()
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 & FullyConnectedOff()
#define SITKBasicFilters_EXPORT
BasicPixelIDTypeList PixelIDTypeList
double GetDistanceThreshold() const
The base interface for SimpleITK filters that take one input image.
std::string GetName() const