18 #ifndef sitkLabelContourImageFilter_h
19 #define sitkLabelContourImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
78 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
89 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
96 std::string
GetName()
const {
return std::string (
"LabelContourImageFilter"); }
99 std::string ToString()
const;
107 Image Execute (
const Image& image1,
bool fullyConnected,
double backgroundValue );
114 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
115 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & FullyConnectedOff()
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Image LabelContour(const Image &image1, bool fullyConnected=false, double backgroundValue=0)
Labels the pixels on the border of the objects in a labeled image.
#define SITKBasicFilters_EXPORT
IntegerPixelIDTypeList PixelIDTypeList
Self & SetFullyConnected(bool FullyConnected)
Self & SetBackgroundValue(double BackgroundValue)
double GetBackgroundValue() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The main Image class for SimpleITK.
Self & FullyConnectedOn()
bool GetFullyConnected() const
Labels the pixels on the border of the objects in a labeled image.
std::string GetName() const
The base interface for SimpleITK filters that take one input image.
LabelContourImageFilter Self