Go to the documentation of this file.
18 #ifndef sitkConnectedComponentImageFilter_h
19 #define sitkConnectedComponentImageFilter_h
64 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
67 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
84 std::string
GetName()
const {
return std::string (
"ConnectedComponentImageFilter"); }
87 std::string ToString()
const;
100 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
109 bool m_FullyConnected{
false};
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.
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList