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 (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
98 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
103 SITK_RETURN_SELF_TYPE_HEADER
SetOutputForegroundValue (
double OutputForegroundValue ) { this->m_OutputForegroundValue = OutputForegroundValue;
return *
this; }
113 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;
131 Image Execute (
const Image& image1,
double inputForegroundValue,
double inputBackgroundValue,
const std::vector<unsigned int> & radius,
double outputForegroundValue,
double outputBackgroundValue );
138 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
163 SITKBasicFilters_EXPORT Image SimpleContourExtractor (
const Image& image1,
double inputForegroundValue = 1.0,
double inputBackgroundValue = 0.0,
const std::vector<unsigned int> & radius = std::vector<unsigned int>(3, 1),
double outputForegroundValue = 1.0,
double outputBackgroundValue = 0.0 );