Go to the documentation of this file.
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); }
101 std::string
GetName()
const {
return std::string (
"BinaryReconstructionByErosionImageFilter"); }
104 std::string ToString()
const;
116 template <
class TImageType>
Image ExecuteInternal (
const Image * markerImage,
const Image * maskImage );
125 double m_BackgroundValue{0.0};
128 double m_ForegroundValue{1.0};
131 bool m_FullyConnected{
false};
The Image class for SimpleITK.
Self & FullyConnectedOff()
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
IntegerPixelIDTypeList PixelIDTypeList
std::string GetName() const
Self & FullyConnectedOn()
double GetForegroundValue() const
binary reconstruction by erosion of an image
Self & SetFullyConnected(bool FullyConnected)
double GetBackgroundValue() const
Image(Self::*)(const Image *markerImage, const Image *maskImage) MemberFunctionType
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.
Image BinaryReconstructionByErosion(const Image &markerImage, const Image &maskImage, double backgroundValue=0.0, double foregroundValue=1.0, bool fullyConnected=false)
binary reconstruction by erosion of an image
Self & SetBackgroundValue(double BackgroundValue)
Self & SetForegroundValue(double ForegroundValue)
bool GetFullyConnected() const
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList