Go to the documentation of this file.
18 #ifndef sitkConnectedComponentImageFilter_h
19 #define sitkConnectedComponentImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
66 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
83 std::string
GetName()
const {
return std::string (
"ConnectedComponentImageFilter"); }
86 std::string ToString()
const;
99 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
108 bool m_FullyConnected{
false};
111 uint32_t m_ObjectCount{0u};
The Image class for SimpleITK.
bool GetFullyConnected() const
Self & SetFullyConnected(bool FullyConnected)
Label the objects in a binary image.
Image(Self::*)(const Image *image, const Image *maskImage) MemberFunctionType
uint32_t GetObjectCount() const
Image ConnectedComponent(const Image &image, const Image &maskImage, bool fullyConnected=false)
Label the objects in a binary image.
Self & FullyConnectedOff()
IntegerPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Self & FullyConnectedOn()
The base interface for SimpleITK filters that take one input image.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList