Go to the documentation of this file.
18 #ifndef sitkLabelMapToBinaryImageFilter_h
19 #define sitkLabelMapToBinaryImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
85 std::string
GetName()
const {
return std::string (
"LabelMapToBinaryImageFilter"); }
88 std::string ToString()
const;
100 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
109 double m_BackgroundValue{0};
112 double m_ForegroundValue{1.0};
The Image class for SimpleITK.
std::string GetName() const
Image LabelMapToBinary(const Image &image1, double backgroundValue=0, double foregroundValue=1.0)
Convert a LabelMap to a binary image.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetBackgroundValue(double BackgroundValue)
Image(Self::*)(const Image &image1) MemberFunctionType
double GetForegroundValue() const
double GetBackgroundValue() const
Convert a LabelMap to a binary image.
Self & SetForegroundValue(double ForegroundValue)
LabelPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList