18 #ifndef sitkConnectedComponentImageFilter_h
19 #define sitkConnectedComponentImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
74 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
90 std::string
GetName()
const {
return std::string (
"ConnectedComponentImageFilter"); }
93 std::string ToString()
const;
101 Image Execute (
const Image& image1,
bool fullyConnected );
108 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
109 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::string GetName() const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Image ConnectedComponent(const Image &image1, bool fullyConnected=false)
Label the objects in a binary image.
#define SITKBasicFilters_EXPORT
ConnectedComponentImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOff()
The main Image class for SimpleITK.
Label the objects in a binary image.
Self & SetFullyConnected(bool FullyConnected)
Self & FullyConnectedOn()
bool GetFullyConnected() const
IntegerPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.
uint32_t GetObjectCount() const