18 #ifndef itkParabolicOpenCloseSafeBorderImageFilter_h
19 #define itkParabolicOpenCloseSafeBorderImageFilter_h
32 template<
typename TInputImage,
34 typename TOutputImage = TInputImage >
70 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
81 this->m_MorphFilt->SetScale(scale);
82 if ( s != this->GetScale() )
91 if ( scale != this->GetScale() )
93 this->m_MorphFilt->SetScale(scale);
101 return ( this->m_MorphFilt->GetScale() );
106 if ( B != this->GetUseImageSpacing() )
108 this->m_MorphFilt->SetUseImageSpacing(B);
115 return ( this->m_MorphFilt->GetUseImageSpacing() );
118 itkBooleanMacro(UseImageSpacing);
120 itkSetMacro(SafeBorder,
bool);
121 itkGetConstReferenceMacro(SafeBorder,
bool);
122 itkBooleanMacro(SafeBorder);
136 itkSetMacro(ParabolicAlgorithm,
int);
137 itkGetConstReferenceMacro(ParabolicAlgorithm,
int);
141 void Modified()
const override;
144 void GenerateData()
override;
146 void PrintSelf(std::ostream & os,
Indent indent)
const override;
155 m_MorphFilt = MorphFilterType::New();
156 m_PadFilt = PadFilterType::New();
157 m_CropFilt = CropFilterType::New();
158 m_StatsFilt = StatsFilterType::New();
160 m_ParabolicAlgorithm = INTERSECTION;
176 #ifndef ITK_MANUAL_INSTANTIATION
177 #include "itkParabolicOpenCloseSafeBorderImageFilter.hxx"
Increase the image size by padding with a constant value.
CropFilterType::Pointer m_CropFilt
typename NumericTraits< InputPixelType >::ScalarRealType ScalarRealType
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
void SetScale(RadiusType scale)
Base class for all process objects that output image data.
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
void SetUseImageSpacing(bool B)
const RadiusType & GetScale() const
TInputImage InputImageType
ParabolicOpenCloseSafeBorderImageFilter()
~ParabolicOpenCloseSafeBorderImageFilter() override
StatsFilterType::Pointer m_StatsFilt
bool GetUseImageSpacing() const
typename InputImageType::Pointer InputImagePointer
void SetScale(ScalarRealType scale)
Compute min, max, variance and mean of an Image.
TOutputImage OutputImageType
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
MorphFilterType::Pointer m_MorphFilt
PadFilterType::Pointer m_PadFilt
typename NumericTraits< InputPixelType >::RealType RealType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::PixelType InputPixelType
typename InputImageType::ConstPointer InputImageConstPointer
Parent class for morphological opening and closing operations with parabolic structuring elements...