18 #ifndef sitkBinaryImageToLabelMapFilter_h
19 #define sitkBinaryImageToLabelMapFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
78 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
89 SITK_RETURN_SELF_TYPE_HEADER
SetInputForegroundValue (
double InputForegroundValue ) { this->m_InputForegroundValue = InputForegroundValue;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetOutputBackgroundValue (
double OutputBackgroundValue ) { this->m_OutputBackgroundValue = OutputBackgroundValue;
return *
this; }
106 std::string
GetName()
const {
return std::string (
"BinaryImageToLabelMapFilter"); }
109 std::string ToString()
const;
117 Image Execute (
const Image& image1,
bool fullyConnected,
double inputForegroundValue,
double outputBackgroundValue );
124 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
125 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...
Self & SetFullyConnected(bool FullyConnected)
bool GetFullyConnected() const
The main 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()