ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkClosingByReconstructionImageFilter.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 itkClosingByReconstructionImageFilter_h
19 #define itkClosingByReconstructionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
51 template< typename TInputImage, typename TOutputImage, typename TKernel >
52 class ITK_TEMPLATE_EXPORT ClosingByReconstructionImageFilter:
53  public ImageToImageFilter< TInputImage, TOutputImage >
54 {
55 public:
56  ITK_DISALLOW_COPY_AND_ASSIGN(ClosingByReconstructionImageFilter);
57 
63 
65  using InputImageType = TInputImage;
66  using InputImagePointer = typename InputImageType::Pointer;
67  using InputImageConstPointer = typename InputImageType::ConstPointer;
69  using InputImagePixelType = typename InputImageType::PixelType;
70 
71  using OutputImageType = TOutputImage;
72  using OutputImagePointer = typename OutputImageType::Pointer;
73  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
75  using OutputImagePixelType = typename OutputImageType::PixelType;
76 
78  using KernelType = TKernel;
79 
81  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
82  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
83 
85  itkNewMacro(Self);
86 
90 
92  itkSetMacro(Kernel, KernelType);
93 
95  itkGetConstReferenceMacro(Kernel, KernelType);
96 
103  itkSetMacro(FullyConnected, bool);
104  itkGetConstReferenceMacro(FullyConnected, bool);
105  itkBooleanMacro(FullyConnected);
107 
112  itkSetMacro(PreserveIntensities, bool);
113  itkGetConstReferenceMacro(PreserveIntensities, bool);
114  itkBooleanMacro(PreserveIntensities);
116 
117 #ifdef ITK_USE_CONCEPT_CHECKING
118  // Begin concept checking
119  itkConceptMacro( InputConvertibleToOutputCheck,
121  // End concept checking
122 #endif
123 
124 protected:
126  ~ClosingByReconstructionImageFilter() override = default;
127  void PrintSelf(std::ostream & os, Indent indent) const override;
128 
132  void GenerateInputRequestedRegion() override;
133 
135  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) override;
136 
137  void GenerateData() override;
138 
139 private:
144 }; // end of class
145 } // end namespace itk
146 
147 #ifndef ITK_MANUAL_INSTANTIATION
148 #include "itkClosingByReconstructionImageFilter.hxx"
149 #endif
150 
151 #endif
typename OutputImageType::Pointer OutputImagePointer
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 InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer
Base class for all data objects in ITK.