18 #ifndef sitkSimpleContourExtractorImageFilter_h
19 #define sitkSimpleContourExtractorImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetInputForegroundValue (
double InputForegroundValue ) { this->m_InputForegroundValue = InputForegroundValue;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetInputBackgroundValue (
double InputBackgroundValue ) { this->m_InputBackgroundValue = InputBackgroundValue;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
96 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
101 SITK_RETURN_SELF_TYPE_HEADER
SetOutputForegroundValue (
double OutputForegroundValue ) { this->m_OutputForegroundValue = OutputForegroundValue;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetOutputBackgroundValue (
double OutputBackgroundValue ) { this->m_OutputBackgroundValue = OutputBackgroundValue;
return *
this; }
119 std::string
GetName()
const {
return std::string (
"SimpleContourExtractorImageFilter"); }
122 std::string ToString()
const;
134 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
142 double m_InputForegroundValue{1.0};
144 double m_InputBackgroundValue{0.0};
147 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
149 double m_OutputForegroundValue{1.0};
151 double m_OutputBackgroundValue{0.0};
166 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 );