ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryFillholeImageFilter.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 itkBinaryFillholeImageFilter_h
19#define itkBinaryFillholeImageFilter_h
20
22
23namespace itk
24{
25
44template <typename TInputImage>
45class ITK_TEMPLATE_EXPORT BinaryFillholeImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(BinaryFillholeImageFilter);
49
55
57 using InputImageType = TInputImage;
58 using OutputImageType = TInputImage;
59 using InputImagePointer = typename InputImageType::Pointer;
60 using InputImageConstPointer = typename InputImageType::ConstPointer;
61 using InputImageRegionType = typename InputImageType::RegionType;
62 using InputImagePixelType = typename InputImageType::PixelType;
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 = OutputImageType::ImageDimension;
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(BinaryFillholeImageFilter);
77
84 itkSetMacro(FullyConnected, bool);
85 itkGetConstReferenceMacro(FullyConnected, bool);
86 itkBooleanMacro(FullyConnected);
88
90
93 itkSetMacro(ForegroundValue, InputImagePixelType);
94
97 itkGetMacro(ForegroundValue, InputImagePixelType);
98
99protected:
101 ~BinaryFillholeImageFilter() override = default;
102 void
103 PrintSelf(std::ostream & os, Indent indent) const override;
104
108 void
110
112 void
113 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
114
117 void
118 GenerateData() override;
119
120private:
122
124
125}; // end of class
126
127} // end namespace itk
128
129#ifndef ITK_MANUAL_INSTANTIATION
130# include "itkBinaryFillholeImageFilter.hxx"
131#endif
132
133#endif
static constexpr unsigned int OutputImageDimension
typename OutputImageType::Pointer OutputImagePointer
ImageToImageFilter< TInputImage, TInputImage > Superclass
typename InputImageType::Pointer InputImagePointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename OutputImageType::RegionType OutputImageRegionType
static constexpr unsigned int InputImageDimension
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
~BinaryFillholeImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion() 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....