18 #ifndef sitkBinaryGrindPeakImageFilter_h
19 #define sitkBinaryGrindPeakImageFilter_h
70 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
73 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
84 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
94 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
101 std::string
GetName()
const {
return std::string (
"BinaryGrindPeakImageFilter"); }
104 std::string ToString()
const;
112 Image Execute (
const Image& image1,
bool fullyConnected,
double foregroundValue,
double backgroundValue );
118 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
119 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
IntegerPixelIDTypeList PixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
Self & FullyConnectedOn()
#define SITKBasicFilters_EXPORT
double GetBackgroundValue() const
Image BinaryGrindPeak(const Image &image1, bool fullyConnected=false, double foregroundValue=1.0, double backgroundValue=0)
Remove the objects not connected to the boundary of the image.
std::string GetName() const
Self & FullyConnectedOff()
Remove the objects not connected to the boundary of the image.
The Image class for SimpleITK.
Self & SetFullyConnected(bool FullyConnected)
BinaryGrindPeakImageFilter Self
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
bool GetFullyConnected() const
Self & SetBackgroundValue(double BackgroundValue)
The base interface for SimpleITK filters that take one input image.
Self & SetForegroundValue(double ForegroundValue)
double GetForegroundValue() const