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; }
84 std::string
GetName()
const {
return std::string (
"LabelMapToBinaryImageFilter"); }
87 std::string ToString()
const;
95 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue );
101 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
102 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::string GetName() const
#define SITKBasicFilters_EXPORT
Convert a LabelMap to a binary image.
typelist::MakeTypeList< LabelPixelID< uint8_t >, LabelPixelID< uint16_t >, LabelPixelID< uint32_t > >::Type LabelPixelIDTypeList
Image LabelMapToBinary(const Image &image1, double backgroundValue=0, double foregroundValue=1.0)
Convert a LabelMap to a binary image.
double GetForegroundValue() const
Self & SetBackgroundValue(double BackgroundValue)
LabelPixelIDTypeList PixelIDTypeList
The Image class for SimpleITK.
double GetBackgroundValue() const
LabelMapToBinaryImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
Self & SetForegroundValue(double ForegroundValue)