18 #ifndef sitkLessEqualImageFilter_h
19 #define sitkLessEqualImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue ( uint8_t BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue ( uint8_t ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
90 std::string
GetName()
const {
return std::string (
"LessEqualImageFilter"); }
93 std::string ToString()
const;
103 Image Execute (
const Image& image1,
double constant );
105 Image Execute (
Image&& image1,
double constant );
107 Image Execute (
double constant,
const Image& image2 );
109 Image Execute (
const Image& image1,
double constant, uint8_t backgroundValue, uint8_t foregroundValue );
110 Image Execute (
double constant,
const Image& image2, uint8_t backgroundValue, uint8_t foregroundValue );
117 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
124 template <
class TImageType>
Image ExecuteInternal (
double constant,
const Image& image2 );
129 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
double constant );
134 uint8_t m_BackgroundValue{0u};
136 uint8_t m_ForegroundValue{1u};
139 bool m_InPlace{
false};