18 #ifndef itkParabolicOpenCloseSafeBorderImageFilter_h
19 #define itkParabolicOpenCloseSafeBorderImageFilter_h
32 template<
typename TInputImage,
34 typename TOutputImage = TInputImage >
68 itkStaticConstMacro(ImageDimension,
unsigned int,
69 TInputImage::ImageDimension);
80 this->m_MorphFilt->SetScale(scale);
81 if ( s != this->GetScale() )
90 if ( scale != this->GetScale() )
92 this->m_MorphFilt->SetScale(scale);
100 return ( this->m_MorphFilt->GetScale() );
105 if ( B != this->GetUseImageSpacing() )
107 this->m_MorphFilt->SetUseImageSpacing(B);
114 return ( this->m_MorphFilt->GetUseImageSpacing() );
117 itkBooleanMacro(UseImageSpacing);
119 itkSetMacro(SafeBorder,
bool);
120 itkGetConstReferenceMacro(SafeBorder,
bool);
121 itkBooleanMacro(SafeBorder);
135 itkSetMacro(ParabolicAlgorithm,
int);
136 itkGetConstReferenceMacro(ParabolicAlgorithm,
int);
140 virtual void Modified()
const;
145 void PrintSelf(std::ostream & os,
Indent indent)
const;
154 m_MorphFilt = MorphFilterType::New();
155 m_PadFilt = PadFilterType::New();
156 m_CropFilt = CropFilterType::New();
157 m_StatsFilt = StatsFilterType::New();
159 m_ParabolicAlgorithm = INTERSECTION;
177 #ifndef ITK_MANUAL_INSTANTIATION
178 #include "itkParabolicOpenCloseSafeBorderImageFilter.hxx"
TInputImage::Pointer InputImagePointer
Increase the image size by padding with a constant value.
CropFilterType::Pointer m_CropFilt
TInputImage::PixelType InputPixelType
SmartPointer< Self > Pointer
ParabolicOpenCloseSafeBorderImageFilter Self
SmartPointer< const Self > ConstPointer
virtual ~ParabolicOpenCloseSafeBorderImageFilter()
void SetScale(RadiusType scale)
Base class for all process objects that output image data.
void SetUseImageSpacing(bool B)
const RadiusType & GetScale() const
ParabolicOpenCloseSafeBorderImageFilter()
StatisticsImageFilter< InputImageType > StatsFilterType
StatsFilterType::Pointer m_StatsFilt
NumericTraits< InputPixelType >::ScalarRealType ScalarRealType
TOutputImage OutputImageType
bool GetUseImageSpacing() const
itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
TInputImage::ConstPointer InputImageConstPointer
void SetScale(ScalarRealType scale)
Compute min. max, variance and mean of an Image.
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
ImageToImageFilter< TInputImage, TOutputImage > Superclass
MorphFilterType::Pointer m_MorphFilt
CropImageFilter< TOutputImage, TOutputImage > CropFilterType
PadFilterType::Pointer m_PadFilt
ConstantPadImageFilter< TInputImage, TInputImage > PadFilterType
ParabolicOpenCloseImageFilter< TInputImage, doOpen, TOutputImage > MorphFilterType
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
Control indentation during Print() invocation.
TOutputImage::PixelType OutputPixelType
Define additional traits for native types such as int or float.
Parent class for morphological opening and closing operations with parabolic structuring elements...
NumericTraits< InputPixelType >::RealType RealType