18 #ifndef itkMorphologicalSharpeningImageFilter_h
19 #define itkMorphologicalSharpeningImageFilter_h
66 template<
typename TInputImage,
typename TOutputImage = TInputImage >
99 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
100 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
101 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
106 itkSetMacro(Iterations,
int);
107 itkGetConstReferenceMacro(Iterations,
int);
111 m_Erode->SetScale(scale);
112 m_Dilate->SetScale(scale);
117 m_Erode->SetScale(scale);
118 m_Dilate->SetScale(scale);
123 m_Erode->SetUseImageSpacing(uis);
124 m_Dilate->SetUseImageSpacing(uis);
130 return m_Erode->GetScale();
135 return m_Erode->GetUseImageSpacing();
138 #ifdef ITK_USE_CONCEPT_CHECKING
142 itkGetStaticConstMacro(OutputImageDimension) > ) );
152 void PrintSelf(std::ostream & os,
Indent indent)
const override;
156 void GenerateData(
void)
override;
174 #ifndef ITK_MANUAL_INSTANTIATION
175 #include "itkMorphologicalSharpeningImageFilter.hxx"
Implements the sharpening operation. The inputs are the dilated, eroded and original images...
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
Image sharpening using methods based on parabolic structuring elements.
typename NumericTraits< InputPixelType >::ScalarRealType ScalarRealType
Define numeric traits for std::vector.
typename itk::SharpenOpImageFilter< OutputImageType, OutputImageType, OutputImageType, OutputImageType > SharpenOpType
typename itk::CastImageFilter< InputImageType, OutputImageType > CastType
DilateType::Pointer m_Dilate
const RadiusType & GetScale()
void SetScale(RadiusType scale)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Class for morphological erosion operations with parabolic structuring elements.
Base class for all process objects that output image data.
typename TInputImage::PixelType InputPixelType
TInputImage InputImageType
ErodeType::Pointer m_Erode
typename InputImageType::Pointer InputImagePointer
void SetScale(ScalarRealType scale)
void SetUseImageSpacing(bool uis)
Class for morphological dilation operations with parabolic structuring elements.
const bool & GetUseImageSpacing()
TOutputImage OutputImageType
typename NumericTraits< InputPixelType >::RealType RealType
SharpenOpType::Pointer m_SharpenOp
typename itk::ParabolicDilateImageFilter< OutputImageType, OutputImageType > DilateType
~MorphologicalSharpeningImageFilter() override
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
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
typename itk::ParabolicErodeImageFilter< OutputImageType, OutputImageType > ErodeType
Casts input pixels to output pixel type.