18 #ifndef sitkSimpleContourExtractorImageFilter_h
19 #define sitkSimpleContourExtractorImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetInputForegroundValue (
double InputForegroundValue ) { this->m_InputForegroundValue = InputForegroundValue;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetInputBackgroundValue (
double InputBackgroundValue ) { this->m_InputBackgroundValue = InputBackgroundValue;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
97 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
102 SITK_RETURN_SELF_TYPE_HEADER
SetOutputForegroundValue (
double OutputForegroundValue ) { this->m_OutputForegroundValue = OutputForegroundValue;
return *
this; }
112 SITK_RETURN_SELF_TYPE_HEADER
SetOutputBackgroundValue (
double OutputBackgroundValue ) { this->m_OutputBackgroundValue = OutputBackgroundValue;
return *
this; }
120 std::string
GetName()
const {
return std::string (
"SimpleContourExtractorImageFilter"); }
123 std::string ToString()
const;
135 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
143 double m_InputForegroundValue{1.0};
145 double m_InputBackgroundValue{0.0};
148 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
150 double m_OutputForegroundValue{1.0};
152 double m_OutputBackgroundValue{0.0};
167 SITKBasicFilters_EXPORT Image SimpleContourExtractor (
const Image& image1,
double inputForegroundValue = 1.0,
double inputBackgroundValue = 0.0, std::vector<unsigned int> radius = std::vector<unsigned int>(3, 1),
double outputForegroundValue = 1.0,
double outputBackgroundValue = 0.0 );