18 #ifndef sitkOtsuThresholdImageFilter_h
19 #define sitkOtsuThresholdImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetInsideValue (
uint8_t InsideValue ) { this->m_InsideValue = InsideValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetOutsideValue (
uint8_t OutsideValue ) { this->m_OutsideValue = OutsideValue;
return *
this; }
104 SITK_RETURN_SELF_TYPE_HEADER
SetMaskOutput (
bool MaskOutput ) { this->m_MaskOutput = MaskOutput;
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOn() {
return this->SetMaskOutput(
true); }
108 SITK_RETURN_SELF_TYPE_HEADER
MaskOutputOff() {
return this->SetMaskOutput(
false); }
117 SITK_RETURN_SELF_TYPE_HEADER
SetMaskValue (
uint8_t MaskValue ) { this->m_MaskValue = MaskValue;
return *
this; }
126 SITK_RETURN_SELF_TYPE_HEADER
SetReturnBinMidpoint (
bool ReturnBinMidpoint ) { this->m_ReturnBinMidpoint = ReturnBinMidpoint;
return *
this; }
146 std::string
GetName()
const {
return std::string (
"OtsuThresholdImageFilter"); }
149 std::string ToString()
const;
162 template <
class TImageType>
Image ExecuteInternal (
const Image * image,
const Image * maskImage );
176 bool m_MaskOutput{
true};
180 bool m_ReturnBinMidpoint{
false};
183 double m_Threshold{0.0};