ITK  5.2.0
Insight Toolkit
itkReconstructionByDilationImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkReconstructionByDilationImageFilter_h
19 #define itkReconstructionByDilationImageFilter_h
20 
22 
23 #include "itkNumericTraits.h"
24 #include <functional>
25 
26 namespace itk
27 {
63 template <typename TInputImage, typename TOutputImage>
65  : public ReconstructionImageFilter<TInputImage, TOutputImage, std::greater<typename TOutputImage::PixelType>>
66 {
67 public:
68  ITK_DISALLOW_COPY_AND_MOVE(ReconstructionByDilationImageFilter);
69 
71  using Superclass =
73 
76 
78  using MarkerImageType = TInputImage;
79  using MarkerImagePointer = typename MarkerImageType::Pointer;
80  using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
82  using MarkerImagePixelType = typename MarkerImageType::PixelType;
83  using MaskImageType = TInputImage;
84  using MaskImagePointer = typename MaskImageType::Pointer;
85  using MaskImageConstPointer = typename MaskImageType::ConstPointer;
87  using MaskImagePixelType = typename MaskImageType::PixelType;
88  using OutputImageType = TOutputImage;
89  using OutputImagePointer = typename OutputImageType::Pointer;
90  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
92  using OutputImagePixelType = typename OutputImageType::PixelType;
93 
95  static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
96  static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
97  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
98 
100  itkNewMacro(Self);
101 
104 
105 protected:
107  {
109  }
110 
111  ~ReconstructionByDilationImageFilter() override = default;
112 };
113 // end ReconstructionByDilationImageFilter
114 } // namespace itk
115 
116 #endif
itk::ReconstructionByDilationImageFilter::MarkerImagePixelType
typename MarkerImageType::PixelType MarkerImagePixelType
Definition: itkReconstructionByDilationImageFilter.h:82
itk::ReconstructionByDilationImageFilter::OutputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Definition: itkReconstructionByDilationImageFilter.h:90
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::ReconstructionByDilationImageFilter::MarkerImagePointer
typename MarkerImageType::Pointer MarkerImagePointer
Definition: itkReconstructionByDilationImageFilter.h:79
itk::ReconstructionByDilationImageFilter::OutputImageDimension
static constexpr unsigned int OutputImageDimension
Definition: itkReconstructionByDilationImageFilter.h:97
itk::ReconstructionByDilationImageFilter::MaskImagePointer
typename MaskImageType::Pointer MaskImagePointer
Definition: itkReconstructionByDilationImageFilter.h:84
itk::ReconstructionByDilationImageFilter::MaskImageDimension
static constexpr unsigned int MaskImageDimension
Definition: itkReconstructionByDilationImageFilter.h:96
itk::ReconstructionByDilationImageFilter::MaskImageRegionType
typename MaskImageType::RegionType MaskImageRegionType
Definition: itkReconstructionByDilationImageFilter.h:86
itk::NumericTraits::NonpositiveMin
static constexpr T NonpositiveMin()
Definition: itkNumericTraits.h:97
itk::ReconstructionByDilationImageFilter
grayscale reconstruction by dilation of an image
Definition: itkReconstructionByDilationImageFilter.h:64
itk::SmartPointer< Self >
itkReconstructionImageFilter.h
itk::ReconstructionImageFilter< TInputImage, TOutputImage, std::greater< TOutputImage::PixelType > >::m_MarkerValue
TInputImage::PixelType m_MarkerValue
Definition: itkReconstructionImageFilter.h:161
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::ReconstructionImageFilter
Performs a grayscale geodesic reconstruction – for performance comparison with GrayscaleGeodesicDilat...
Definition: itkReconstructionImageFilter.h:55
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ReconstructionByDilationImageFilter::MaskImageType
TInputImage MaskImageType
Definition: itkReconstructionByDilationImageFilter.h:83
itk::ReconstructionByDilationImageFilter::MarkerImageRegionType
typename MarkerImageType::RegionType MarkerImageRegionType
Definition: itkReconstructionByDilationImageFilter.h:81
itk::ReconstructionByDilationImageFilter::MarkerImageConstPointer
typename MarkerImageType::ConstPointer MarkerImageConstPointer
Definition: itkReconstructionByDilationImageFilter.h:80
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::ReconstructionByDilationImageFilter::MarkerImageDimension
static constexpr unsigned int MarkerImageDimension
Definition: itkReconstructionByDilationImageFilter.h:95
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ReconstructionByDilationImageFilter::MarkerImageType
TInputImage MarkerImageType
Definition: itkReconstructionByDilationImageFilter.h:78
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ImageSource::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkImageSource.h:93
itkNumericTraits.h
itk::ReconstructionByDilationImageFilter::MaskImageConstPointer
typename MaskImageType::ConstPointer MaskImageConstPointer
Definition: itkReconstructionByDilationImageFilter.h:85
itk::ReconstructionByDilationImageFilter::ReconstructionByDilationImageFilter
ReconstructionByDilationImageFilter()
Definition: itkReconstructionByDilationImageFilter.h:106
itk::ReconstructionByDilationImageFilter::MaskImagePixelType
typename MaskImageType::PixelType MaskImagePixelType
Definition: itkReconstructionByDilationImageFilter.h:87
itk::ReconstructionByDilationImageFilter::~ReconstructionByDilationImageFilter
~ReconstructionByDilationImageFilter() override=default
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90