18 #ifndef sitkEqualImageFilter_h
19 #define sitkEqualImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue ( uint8_t BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue ( uint8_t ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
89 std::string
GetName()
const {
return std::string (
"EqualImageFilter"); }
92 std::string ToString()
const;
102 Image Execute (
const Image& image1,
double constant );
104 Image Execute (
Image&& image1,
double constant );
106 Image Execute (
double constant,
const Image& image2 );
108 Image Execute (
const Image& image1,
double constant, uint8_t backgroundValue, uint8_t foregroundValue );
109 Image Execute (
double constant,
const Image& image2, uint8_t backgroundValue, uint8_t foregroundValue );
116 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
123 template <
class TImageType>
Image ExecuteInternal (
double constant,
const Image& image2 );
128 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
double constant );
133 uint8_t m_BackgroundValue{0u};
135 uint8_t m_ForegroundValue{1u};
138 bool m_InPlace{
false};