ITK  5.1.0
Insight Toolkit
itkBinaryMorphologicalOpeningImageFilter.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 itkBinaryMorphologicalOpeningImageFilter_h
19 #define itkBinaryMorphologicalOpeningImageFilter_h
20 
21 #include "itkKernelImageFilter.h"
22 
23 namespace itk
24 {
58 template <typename TInputImage, typename TOutputImage, typename TKernel>
59 class ITK_TEMPLATE_EXPORT BinaryMorphologicalOpeningImageFilter
60  : public KernelImageFilter<TInputImage, TOutputImage, TKernel>
61 {
62 public:
63  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryMorphologicalOpeningImageFilter);
64 
70 
72  itkNewMacro(Self);
73 
76 
77  using InputImageType = TInputImage;
78  using OutputImageType = TOutputImage;
79  using InputImagePointer = typename InputImageType::Pointer;
81 
83  using PixelType = typename TInputImage::PixelType;
84 
86  using KernelType = TKernel;
87 
90  itkSetMacro(ForegroundValue, PixelType);
91 
94  itkGetConstMacro(ForegroundValue, PixelType);
95 
97  itkSetMacro(BackgroundValue, PixelType);
98 
100  itkGetConstMacro(BackgroundValue, PixelType);
101 
102 protected:
104  ~BinaryMorphologicalOpeningImageFilter() override = default;
105  void
106  PrintSelf(std::ostream & os, Indent indent) const override;
107 
110  void
111  GenerateData() override;
112 
113 private:
115 
117 }; // end of class
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 # include "itkBinaryMorphologicalOpeningImageFilter.hxx"
122 #endif
123 
124 #endif
itk::BinaryMorphologicalOpeningImageFilter::m_BackgroundValue
PixelType m_BackgroundValue
Definition: itkBinaryMorphologicalOpeningImageFilter.h:116
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::BinaryMorphologicalOpeningImageFilter::m_ForegroundValue
PixelType m_ForegroundValue
Definition: itkBinaryMorphologicalOpeningImageFilter.h:114
itkKernelImageFilter.h
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::KernelType
TKernel KernelType
Definition: itkKernelImageFilter.h:71
itk::KernelImageFilter
A base class for all the filters working on an arbitrary shaped neighborhood.
Definition: itkKernelImageFilter.h:41
itk::BinaryMorphologicalOpeningImageFilter::PixelType
typename TInputImage::PixelType PixelType
Definition: itkBinaryMorphologicalOpeningImageFilter.h:83
itk::BinaryMorphologicalOpeningImageFilter
binary morphological opening of an image.
Definition: itkBinaryMorphologicalOpeningImageFilter.h:59
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90