ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkReconstructionByDilationImageFilter.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 itkReconstructionByDilationImageFilter_h
19 #define itkReconstructionByDilationImageFilter_h
20 
22 
23 #include "itkNumericTraits.h"
24 #include <functional>
25 
26 namespace itk
27 {
62 template< typename TInputImage, typename TOutputImage >
64  public ReconstructionImageFilter< TInputImage, TOutputImage, std::greater< typename TOutputImage::PixelType > >
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_ASSIGN(ReconstructionByDilationImageFilter);
68 
71  TInputImage, TOutputImage, std::greater< typename TOutputImage::PixelType > >;
72 
75 
77  using MarkerImageType = TInputImage;
78  using MarkerImagePointer = typename MarkerImageType::Pointer;
79  using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
81  using MarkerImagePixelType = typename MarkerImageType::PixelType;
82  using MaskImageType = TInputImage;
83  using MaskImagePointer = typename MaskImageType::Pointer;
84  using MaskImageConstPointer = typename MaskImageType::ConstPointer;
86  using MaskImagePixelType = typename MaskImageType::PixelType;
87  using OutputImageType = TOutputImage;
88  using OutputImagePointer = typename OutputImageType::Pointer;
89  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
91  using OutputImagePixelType = typename OutputImageType::PixelType;
92 
94  static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
95  static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
96  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
97 
99  itkNewMacro(Self);
100 
104 
105 protected:
107  {
109  }
110 
111  ~ReconstructionByDilationImageFilter() override = default;
112 };
113 // end ReconstructionByDilationImageFilter
114 }
115 
116 #endif
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Performs a grayscale geodesic reconstruction – for performance comparison with GrayscaleGeodesicDilat...
Define numeric traits for std::vector.
~ReconstructionByDilationImageFilter() override=default
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
grayscale reconstruction by dilation of an image
typename MarkerImageType::ConstPointer MarkerImageConstPointer