18 #ifndef sitkConnectedComponentImageFilter_h
19 #define sitkConnectedComponentImageFilter_h
65 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
68 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
84 std::string
GetName()
const {
return std::string (
"ConnectedComponentImageFilter"); }
87 std::string ToString()
const;
96 Image Execute (
const Image & image,
const Image & maskImage,
bool fullyConnected );
97 Image Execute (
const Image & image,
bool fullyConnected );
103 typedef Image (Self::*MemberFunctionType)(
const Image * image,
const Image * maskImage );
104 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
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
#define SITKBasicFilters_EXPORT
ConnectedComponentImageFilter Self
Image ConnectedComponent(const Image &image, const Image &maskImage, bool fullyConnected=false)
Label the objects in a binary image.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOff()
The 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