18 #ifndef sitkBinaryImageToLabelMapFilter_h
19 #define sitkBinaryImageToLabelMapFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
83 SITK_RETURN_SELF_TYPE_HEADER
SetInputForegroundValue (
double InputForegroundValue ) { this->m_InputForegroundValue = InputForegroundValue;
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetOutputBackgroundValue (
double OutputBackgroundValue ) { this->m_OutputBackgroundValue = OutputBackgroundValue;
return *
this; }
108 std::string
GetName()
const {
return std::string (
"BinaryImageToLabelMapFilter"); }
111 std::string ToString()
const;
119 Image Execute (
const Image& image1,
bool fullyConnected,
double inputForegroundValue,
double outputBackgroundValue );
125 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
126 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetInputForegroundValue(double InputForegroundValue)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
BinaryImageToLabelMapFilter Self
#define SITKBasicFilters_EXPORT
double GetInputForegroundValue() const
double GetOutputBackgroundValue() const
std::string GetName() const
Label the connected components in a binary image and produce a collection of label objects...
Image BinaryImageToLabelMap(const Image &image1, bool fullyConnected=false, double inputForegroundValue=1.0, double outputBackgroundValue=0.0)
Label the connected components in a binary image and produce a collection of label objects...
uint64_t m_NumberOfObjects
Self & SetFullyConnected(bool FullyConnected)
uint64_t GetNumberOfObjects() const
bool GetFullyConnected() const
The Image class for SimpleITK.
double m_InputForegroundValue
Self & FullyConnectedOn()
double m_OutputBackgroundValue
IntegerPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.
Self & SetOutputBackgroundValue(double OutputBackgroundValue)
Self & FullyConnectedOff()