ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkReconstructionByErosionImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkReconstructionByErosionImageFilter_h
19 #define itkReconstructionByErosionImageFilter_h
20 
22 
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
61 template< typename TInputImage, typename TOutputImage >
63  public ReconstructionImageFilter< TInputImage, TOutputImage, std::less< typename TOutputImage::PixelType > >
64 {
65 public:
68  TInputImage, TOutputImage, std::less< typename TOutputImage::PixelType > > Superclass;
69 
72 
74  typedef TInputImage MarkerImageType;
75  typedef typename MarkerImageType::Pointer MarkerImagePointer;
76  typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
77  typedef typename MarkerImageType::RegionType MarkerImageRegionType;
78  typedef typename MarkerImageType::PixelType MarkerImagePixelType;
79  typedef TInputImage MaskImageType;
80  typedef typename MaskImageType::Pointer MaskImagePointer;
81  typedef typename MaskImageType::ConstPointer MaskImageConstPointer;
82  typedef typename MaskImageType::RegionType MaskImageRegionType;
83  typedef typename MaskImageType::PixelType MaskImagePixelType;
84  typedef TOutputImage OutputImageType;
85  typedef typename OutputImageType::Pointer OutputImagePointer;
86  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
87  typedef typename OutputImageType::RegionType OutputImageRegionType;
88  typedef typename OutputImageType::PixelType OutputImagePixelType;
89 
91  itkStaticConstMacro(MarkerImageDimension, unsigned int,
92  TInputImage::ImageDimension);
93  itkStaticConstMacro(MaskImageDimension, unsigned int,
94  TInputImage::ImageDimension);
95  itkStaticConstMacro(OutputImageDimension, unsigned int,
96  TOutputImage::ImageDimension);
98 
100  itkNewMacro(Self);
101 
105 
106 protected:
108  {
110  }
111 
112  virtual ~ReconstructionByErosionImageFilter() ITK_OVERRIDE {}
113 
114 private:
115  ITK_DISALLOW_COPY_AND_ASSIGN(ReconstructionByErosionImageFilter);
116 }; // end
117  //
118  //
119  //
120  //
121  // ReconstructionByErosionImageFilter
122 }
123 
124 #endif
Performs a grayscale geodesic reconstruction – for performance comparison with GrayscaleGeodesicDilat...
Base class for all process objects that output image data.
static ITK_CONSTEXPR_FUNC T max(const T &)
grayscale reconstruction by erosion of an image
ReconstructionImageFilter< TInputImage, TOutputImage, std::less< typename TOutputImage::PixelType > > Superclass