ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkGrayscaleConnectedClosingImageFilter.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 itkGrayscaleConnectedClosingImageFilter_h
19#define itkGrayscaleConnectedClosingImageFilter_h
20
22
23namespace itk
24{
42template <typename TInputImage, typename TOutputImage>
43class ITK_TEMPLATE_EXPORT GrayscaleConnectedClosingImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(GrayscaleConnectedClosingImageFilter);
47
53
55 using InputImageType = TInputImage;
56 using InputImagePointer = typename InputImageType::Pointer;
57 using InputImageConstPointer = typename InputImageType::ConstPointer;
58 using InputImageRegionType = typename InputImageType::RegionType;
59 using InputImagePixelType = typename InputImageType::PixelType;
60 using InputImageIndexType = typename InputImageRegionType::IndexType;
61 using OutputImageType = TOutputImage;
62 using OutputImagePointer = typename OutputImageType::Pointer;
63 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
64 using OutputImageRegionType = typename OutputImageType::RegionType;
65 using OutputImagePixelType = typename OutputImageType::PixelType;
66
68 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
69 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
70
72 itkNewMacro(Self);
73
75 itkOverrideGetNameOfClassMacro(GrayscaleConnectedClosingImageFilter);
76
78 itkSetMacro(Seed, InputImageIndexType);
79 itkGetConstMacro(Seed, InputImageIndexType);
81
88 itkSetMacro(FullyConnected, bool);
89 itkGetConstReferenceMacro(FullyConnected, bool);
90 itkBooleanMacro(FullyConnected);
92
96
97protected:
100 void
101 PrintSelf(std::ostream & os, Indent indent) const override;
102
106 void
108
110 void
111 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
112
115 void
116 GenerateData() override;
117
118private:
119 unsigned long m_NumberOfIterationsUsed{ 1 };
121
123}; // end of class
124} // end namespace itk
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkGrayscaleConnectedClosingImageFilter.hxx"
128#endif
129
130#endif
Base class for all data objects in ITK.
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *output) override
~GrayscaleConnectedClosingImageFilter() override=default
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....