ITK  6.0.0
Insight Toolkit
itkOpeningByReconstructionImageFilter.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 * https://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 itkOpeningByReconstructionImageFilter_h
19#define itkOpeningByReconstructionImageFilter_h
20
22
23namespace itk
24{
54template <typename TInputImage, typename TOutputImage, typename TKernel>
55class ITK_TEMPLATE_EXPORT OpeningByReconstructionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(OpeningByReconstructionImageFilter);
59
65
67 using InputImageType = TInputImage;
71 using InputImagePixelType = typename InputImageType::PixelType;
72 using OutputImageType = TOutputImage;
76 using OutputImagePixelType = typename OutputImageType::PixelType;
77
79 using KernelType = TKernel;
80
82 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
83 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
84
86 itkNewMacro(Self);
87
89 itkOverrideGetNameOfClassMacro(OpeningByReconstructionImageFilter);
90
92 itkSetMacro(Kernel, KernelType);
93
95 itkGetConstReferenceMacro(Kernel, KernelType);
96
103 itkSetMacro(FullyConnected, bool);
104 itkGetConstReferenceMacro(FullyConnected, bool);
105 itkBooleanMacro(FullyConnected);
112 itkSetMacro(PreserveIntensities, bool);
113 itkGetConstReferenceMacro(PreserveIntensities, bool);
114 itkBooleanMacro(PreserveIntensities);
117#ifdef ITK_USE_CONCEPT_CHECKING
118 // Begin concept checking
120 // End concept checking
121#endif
122
123protected:
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
132 void
134
136 void
137 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
138
139 void
140 GenerateData() override;
141
142private:
144 KernelType m_Kernel{};
145 bool m_FullyConnected{};
146 bool m_PreserveIntensities{};
147}; // end of class
148} // end namespace itk
149
150#ifndef ITK_MANUAL_INSTANTIATION
151# include "itkOpeningByReconstructionImageFilter.hxx"
152#endif
153
154#endif
Base class for all data objects in ITK.
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *) override
typename OutputImageType::ConstPointer OutputImageConstPointer
~OpeningByReconstructionImageFilter() override=default
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....