18 #ifndef sitkBinaryReconstructionByErosionImageFilter_h
19 #define sitkBinaryReconstructionByErosionImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
100 std::string
GetName()
const {
return std::string (
"BinaryReconstructionByErosionImageFilter"); }
103 std::string ToString()
const;
111 Image Execute (
const Image& image1,
const Image& image2,
double backgroundValue,
double foregroundValue,
bool fullyConnected );
118 typedef Image (Self::*MemberFunctionType)(
const Image& image1,
const Image& image2 );
119 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
binary reconstruction by erosion of an image
double GetBackgroundValue() const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT
Self & FullyConnectedOff()
BinaryReconstructionByErosionImageFilter Self
double GetForegroundValue() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image BinaryReconstructionByErosion(const Image &image1, const Image &image2, double backgroundValue=0.0, double foregroundValue=1.0, bool fullyConnected=false)
binary reconstruction by erosion of an image
Self & FullyConnectedOn()
The main Image class for SimpleITK.
Self & SetBackgroundValue(double BackgroundValue)
bool GetFullyConnected() const
Self & SetForegroundValue(double ForegroundValue)
std::string GetName() const
Self & SetFullyConnected(bool FullyConnected)
The base interface for SimpleITK filters that take one input image.
IntegerPixelIDTypeList PixelIDTypeList