Go to the documentation of this file.
18 #ifndef sitkScalarConnectedComponentImageFilter_h
19 #define sitkScalarConnectedComponentImageFilter_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 (
"ScalarConnectedComponentImageFilter"); }
80 std::string ToString()
const;
93 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
98 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
101 double m_DistanceThreshold{0.0};
104 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...
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOn()
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