ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkClosingByReconstructionImageFilter.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 itkClosingByReconstructionImageFilter_h
19#define itkClosingByReconstructionImageFilter_h
20
22
23namespace itk
24{
49template <typename TInputImage, typename TOutputImage, typename TKernel>
50class ITK_TEMPLATE_EXPORT ClosingByReconstructionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(ClosingByReconstructionImageFilter);
54
60
62 using InputImageType = TInputImage;
63 using InputImagePointer = typename InputImageType::Pointer;
64 using InputImageConstPointer = typename InputImageType::ConstPointer;
65 using InputImageRegionType = typename InputImageType::RegionType;
66 using InputImagePixelType = typename InputImageType::PixelType;
67
68 using OutputImageType = TOutputImage;
69 using OutputImagePointer = typename OutputImageType::Pointer;
70 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
71 using OutputImageRegionType = typename OutputImageType::RegionType;
72 using OutputImagePixelType = typename OutputImageType::PixelType;
73
75 using KernelType = TKernel;
76
78 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
79 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
80
82 itkNewMacro(Self);
83
85 itkOverrideGetNameOfClassMacro(ClosingByReconstructionImageFilter);
86
88 itkSetMacro(Kernel, KernelType);
89
91 itkGetConstReferenceMacro(Kernel, KernelType);
92
99 itkSetMacro(FullyConnected, bool);
100 itkGetConstReferenceMacro(FullyConnected, bool);
101 itkBooleanMacro(FullyConnected);
103
108 itkSetMacro(PreserveIntensities, bool);
109 itkGetConstReferenceMacro(PreserveIntensities, bool);
110 itkBooleanMacro(PreserveIntensities);
112
114
115protected:
118 void
119 PrintSelf(std::ostream & os, Indent indent) const override;
120
124 void
126
128 void
129 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
130
131 void
132 GenerateData() override;
133
134private:
139}; // end of class
140} // end namespace itk
141
142#ifndef ITK_MANUAL_INSTANTIATION
143# include "itkClosingByReconstructionImageFilter.hxx"
144#endif
145
146#endif
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
~ClosingByReconstructionImageFilter() override=default
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....