Go to the documentation of this file.
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; }
114 std::string
GetName()
const {
return std::string (
"BinaryImageToLabelMapFilter"); }
117 std::string ToString()
const;
125 Image Execute (
const Image& image1,
bool fullyConnected,
double inputForegroundValue,
double outputBackgroundValue );
132 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
The main Image class for SimpleITK.
uint64_t m_NumberOfObjects
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.
double m_InputForegroundValue
Self & SetFullyConnected(bool FullyConnected)
Self & FullyConnectedOn()
std::string GetName() const
Self & SetOutputBackgroundValue(double OutputBackgroundValue)
bool GetFullyConnected() const
Label the connected components in a binary image and produce a collection of label objects.
Self & SetInputForegroundValue(double InputForegroundValue)
IntegerPixelIDTypeList PixelIDTypeList
BinaryImageToLabelMapFilter Self
double GetOutputBackgroundValue() const
uint64_t GetNumberOfObjects() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
double GetInputForegroundValue() const
double m_OutputBackgroundValue
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Self & FullyConnectedOff()