Loading...
Searching...
No Matches
itkParabolicErodeDilateImageFilter.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkParabolicErodeDilateImageFilter_h
#define itkParabolicErodeDilateImageFilter_h
#include "itkImageToImageFilter.h"
#include "itkNumericTraits.h"
#include "itkProgressReporter.h"
namespace itk
{
template <typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
class ITK_TEMPLATE_EXPORT ParabolicErodeDilateImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ParabolicErodeDilateImageFilter);
using Self = ParabolicErodeDilateImageFilter;
using Superclass = ImageToImageFilter<TInputImage, TOutputImage>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(ParabolicErodeDilateImageFilter, ImageToImageFilter);
using InputImageType = TInputImage;
using OutputImageType = TOutputImage;
using PixelType = typename TInputImage::PixelType;
using RealType = typename NumericTraits<PixelType>::RealType;
using ScalarRealType = typename NumericTraits<PixelType>::ScalarRealType;
using OutputPixelType = typename TOutputImage::PixelType;
using InputImagePointer = typename TInputImage::Pointer;
using InputImageConstPointer = typename TInputImage::ConstPointer;
using InputSizeType = typename TInputImage::SizeType;
using OutputSizeType = typename TOutputImage::SizeType;
using RadiusType = typename itk::FixedArray<ScalarRealType, TInputImage::ImageDimension>;
itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
using OutputImageRegionType = typename OutputImageType::RegionType;
using InternalRealType = typename NumericTraits<PixelType>::FloatType;
// typedef typename Image<InternalRealType, Self::ImageDimension > RealImageType;
// set all of the scales the same
void
SetScale(ScalarRealType scale);
itkSetMacro(Scale, RadiusType);
itkGetConstReferenceMacro(Scale, RadiusType);
itkSetMacro(UseImageSpacing, bool);
itkGetConstReferenceMacro(UseImageSpacing, bool);
itkBooleanMacro(UseImageSpacing);
#ifdef ITK_USE_CONCEPT_CHECKING
itkConceptMacro(SameDimension, (Concept::SameDimension<Self::InputImageDimension, Self::OutputImageDimension>));
itkConceptMacro(Comparable, (Concept::Comparable<PixelType>));
#endif
protected:
ParabolicErodeDilateImageFilter();
~ParabolicErodeDilateImageFilter() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
GenerateData() override;
unsigned int
SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType & splitRegion) override;
void
ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) override;
// virtual void GenerateInputRequestedRegion();
// Override since the filter produces the entire dataset.
void
EnlargeOutputRequestedRegion(DataObject * output) override;
bool m_UseImageSpacing{};
private:
RadiusType m_Scale{};
int m_CurrentDimension{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkParabolicErodeDilateImageFilter.hxx"
#endif
#endif
itk::ParabolicErodeDilateImageFilter< TInputImage, false, TOutputImage >::m_UseImageSpacing
bool m_UseImageSpacing
Definition itkParabolicErodeDilateImageFilter.h:156
itk::ParabolicErodeDilateImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkParabolicErodeDilateImageFilter.h:72
itk::ParabolicErodeDilateImageFilter::RadiusType
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
Definition itkParabolicErodeDilateImageFilter.h:95
itk::ParabolicErodeDilateImageFilter::OutputImageType
TOutputImage OutputImageType
Definition itkParabolicErodeDilateImageFilter.h:82
itk::ParabolicErodeDilateImageFilter::SetScale
void SetScale(ScalarRealType scale)
itk::ParabolicErodeDilateImageFilter::InputSizeType
typename TInputImage::SizeType InputSizeType
Definition itkParabolicErodeDilateImageFilter.h:91
itk::ParabolicErodeDilateImageFilter::RealType
typename NumericTraits< PixelType >::RealType RealType
Definition itkParabolicErodeDilateImageFilter.h:84
itk::ParabolicErodeDilateImageFilter::InputImagePointer
typename TInputImage::Pointer InputImagePointer
Definition itkParabolicErodeDilateImageFilter.h:89
itk::ParabolicErodeDilateImageFilter::Superclass
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Definition itkParabolicErodeDilateImageFilter.h:70
itk::ParabolicErodeDilateImageFilter::ThreadedGenerateData
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
itk::ParabolicErodeDilateImageFilter::ParabolicErodeDilateImageFilter
ParabolicErodeDilateImageFilter()
itk::ParabolicErodeDilateImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition itkParabolicErodeDilateImageFilter.h:86
itk::ParabolicErodeDilateImageFilter::ScalarRealType
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
Definition itkParabolicErodeDilateImageFilter.h:85
itk::ParabolicErodeDilateImageFilter::SplitRequestedRegion
unsigned int SplitRequestedRegion(unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) override
itk::ParabolicErodeDilateImageFilter< TInputImage, false, TOutputImage >::m_Scale
RadiusType m_Scale
Definition itkParabolicErodeDilateImageFilter.h:159
itk::ParabolicErodeDilateImageFilter::itkStaticConstMacro
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
itk::ParabolicErodeDilateImageFilter::EnlargeOutputRequestedRegion
void EnlargeOutputRequestedRegion(DataObject *output) override
itk::ParabolicErodeDilateImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::ParabolicErodeDilateImageFilter::InternalRealType
typename NumericTraits< PixelType >::FloatType InternalRealType
Definition itkParabolicErodeDilateImageFilter.h:107
itk::ParabolicErodeDilateImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::ParabolicErodeDilateImageFilter::InputImageType
TInputImage InputImageType
Definition itkParabolicErodeDilateImageFilter.h:81
itk::ParabolicErodeDilateImageFilter::~ParabolicErodeDilateImageFilter
~ParabolicErodeDilateImageFilter() override=default
itk::ParabolicErodeDilateImageFilter< TInputImage, false, TOutputImage >::m_CurrentDimension
int m_CurrentDimension
Definition itkParabolicErodeDilateImageFilter.h:161
itk::ParabolicErodeDilateImageFilter::Self
ParabolicErodeDilateImageFilter Self
Definition itkParabolicErodeDilateImageFilter.h:69
itk::ParabolicErodeDilateImageFilter::OutputSizeType
typename TOutputImage::SizeType OutputSizeType
Definition itkParabolicErodeDilateImageFilter.h:92
itk::ParabolicErodeDilateImageFilter::GenerateData
void GenerateData() override
itk::ParabolicErodeDilateImageFilter::Pointer
SmartPointer< Self > Pointer
Definition itkParabolicErodeDilateImageFilter.h:71
itk::ParabolicErodeDilateImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ParabolicErodeDilateImageFilter)
itk::ParabolicErodeDilateImageFilter::InputImageConstPointer
typename TInputImage::ConstPointer InputImageConstPointer
Definition itkParabolicErodeDilateImageFilter.h:90
itk::ParabolicErodeDilateImageFilter::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition itkParabolicErodeDilateImageFilter.h:102
itk::ParabolicErodeDilateImageFilter::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension)
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |