ITK  5.1.0
Insight Toolkit
itkBinaryClosingByReconstructionImageFilter.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 itkBinaryClosingByReconstructionImageFilter_h
19 #define itkBinaryClosingByReconstructionImageFilter_h
20 
21 #include "itkKernelImageFilter.h"
22 
23 namespace itk
24 {
25 
49 template <typename TInputImage, typename TKernel>
51  : public KernelImageFilter<TInputImage, TInputImage, TKernel>
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryClosingByReconstructionImageFilter);
55 
61 
63  itkNewMacro(Self);
64 
67 
68  using InputImageType = TInputImage;
69  using OutputImageType = TInputImage;
70  using InputImagePointer = typename InputImageType::Pointer;
72 
74  using InputPixelType = typename TInputImage::PixelType;
75  using OutputPixelType = typename TInputImage::PixelType;
76 
78  using KernelType = TKernel;
79 
82  itkSetMacro(ForegroundValue, InputPixelType);
83 
86  itkGetMacro(ForegroundValue, InputPixelType);
87 
94  itkSetMacro(FullyConnected, bool);
95  itkGetConstReferenceMacro(FullyConnected, bool);
96  itkBooleanMacro(FullyConnected);
98 
99 protected:
101  ~BinaryClosingByReconstructionImageFilter() override = default;
102  void
103  PrintSelf(std::ostream & os, Indent indent) const override;
104 
110  void
111  GenerateInputRequestedRegion() override;
112 
115  void
116  GenerateData() override;
117 
118 private:
120 
122 
123 }; // end of class
124 
125 } // end namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 # include "itkBinaryClosingByReconstructionImageFilter.hxx"
129 #endif
130 
131 #endif
itk::BoxImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition: itkBoxImageFilter.h:67
itk::BinaryClosingByReconstructionImageFilter::m_ForegroundValue
InputPixelType m_ForegroundValue
Definition: itkBinaryClosingByReconstructionImageFilter.h:119
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::BinaryClosingByReconstructionImageFilter::m_FullyConnected
bool m_FullyConnected
Definition: itkBinaryClosingByReconstructionImageFilter.h:121
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itkKernelImageFilter.h
itk::BoxImageFilter::InputPixelType
typename TInputImage::PixelType InputPixelType
Definition: itkBoxImageFilter.h:64
itk::BinaryClosingByReconstructionImageFilter
binary closing by reconstruction of an image.
Definition: itkBinaryClosingByReconstructionImageFilter.h:50
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::KernelImageFilter
A base class for all the filters working on an arbitrary shaped neighborhood.
Definition: itkKernelImageFilter.h:41
itk::BinaryClosingByReconstructionImageFilter::KernelType
TKernel KernelType
Definition: itkBinaryClosingByReconstructionImageFilter.h:78
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90