Go to the documentation of this file.
18 #ifndef sitkLabelMapToBinaryImageFilter_h
19 #define sitkLabelMapToBinaryImageFilter_h
66 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
76 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
84 std::string
GetName()
const {
return std::string (
"LabelMapToBinaryImageFilter"); }
87 std::string ToString()
const;
99 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
108 double m_BackgroundValue{0};
111 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
typelist2::typelist< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > > LabelPixelIDTypeList
The base interface for SimpleITK filters that take one input image.