ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkGrayscaleConnectedOpeningImageFilter.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 itkGrayscaleConnectedOpeningImageFilter_h
19#define itkGrayscaleConnectedOpeningImageFilter_h
20
22
23namespace itk
24{
43template <typename TInputImage, typename TOutputImage>
44class ITK_TEMPLATE_EXPORT GrayscaleConnectedOpeningImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(GrayscaleConnectedOpeningImageFilter);
48
54
56 using InputImageType = TInputImage;
57 using InputImagePointer = typename InputImageType::Pointer;
58 using InputImageConstPointer = typename InputImageType::ConstPointer;
59 using InputImageRegionType = typename InputImageType::RegionType;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using InputImageIndexType = typename InputImageRegionType::IndexType;
62 using OutputImageType = TOutputImage;
63 using OutputImagePointer = typename OutputImageType::Pointer;
64 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
65 using OutputImageRegionType = typename OutputImageType::RegionType;
66 using OutputImagePixelType = typename OutputImageType::PixelType;
67
69 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
70 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(GrayscaleConnectedOpeningImageFilter);
77
79 itkSetMacro(Seed, InputImageIndexType);
80 itkGetConstMacro(Seed, InputImageIndexType);
82
89 itkSetMacro(FullyConnected, bool);
90 itkGetConstReferenceMacro(FullyConnected, bool);
91 itkBooleanMacro(FullyConnected);
93
97
98protected:
101 void
102 PrintSelf(std::ostream & os, Indent indent) const override;
103
107 void
109
111 void
112 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
113
116 void
117 GenerateData() override;
118
119private:
120 unsigned long m_NumberOfIterationsUsed{ 1 };
122
124}; // end of class
125} // end namespace itk
126
127#ifndef ITK_MANUAL_INSTANTIATION
128# include "itkGrayscaleConnectedOpeningImageFilter.hxx"
129#endif
130
131#endif
Base class for all data objects in ITK.
void EnlargeOutputRequestedRegion(DataObject *output) override
~GrayscaleConnectedOpeningImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageRegionType::IndexType InputImageIndexType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
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....