Go to the documentation of this file.
18 #ifndef sitkBinaryGrindPeakImageFilter_h
19 #define sitkBinaryGrindPeakImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
72 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
83 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
93 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;
116 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
125 bool m_FullyConnected{
false};
127 double m_ForegroundValue{1.0};
129 double m_BackgroundValue{0};
The Image class for SimpleITK.
Self & FullyConnectedOff()
std::string GetName() const
double GetForegroundValue() const
double GetBackgroundValue() const
bool GetFullyConnected() 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.
Self & FullyConnectedOn()
Self & SetForegroundValue(double ForegroundValue)
Self & SetBackgroundValue(double BackgroundValue)
Remove the objects not connected to the boundary of the image.
Image(Self::*)(const Image &image1) MemberFunctionType
#define SITKBasicFilters_EXPORT
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
IntegerPixelIDTypeList PixelIDTypeList
Self & SetFullyConnected(bool FullyConnected)
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList