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 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
139 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
166 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 );
#define SITKBasicFilters_EXPORT
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
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)
Computes an image of contours which will be the contour of the first image.
The main Image class for SimpleITK.
The base interface for SimpleITK filters that take one input image.