ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryThinningImageFilter.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 itkBinaryThinningImageFilter_h
19#define itkBinaryThinningImageFilter_h
20
24
25namespace itk
26{
56
57template <typename TInputImage, typename TOutputImage>
58class ITK_TEMPLATE_EXPORT BinaryThinningImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
59{
60public:
61 ITK_DISALLOW_COPY_AND_MOVE(BinaryThinningImageFilter);
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(BinaryThinningImageFilter);
74
76 using InputImageType = TInputImage;
77
79 using OutputImageType = TOutputImage;
80
82 using RegionType = typename InputImageType::RegionType;
83
85 using IndexType = typename RegionType::IndexType;
86
88 using PixelType = typename InputImageType::PixelType;
89
91 using SizeType = typename RegionType::SizeType;
92
94 using InputImagePointer = typename InputImageType::ConstPointer;
95
97 using OutputImagePointer = typename OutputImageType::Pointer;
98
101
104
108
110 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
111 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
112
114 itkConceptMacro(InputAdditiveOperatorsCheck, (Concept::AdditiveOperators<PixelType>));
115 itkConceptMacro(InputConvertibleToIntCheck, (Concept::Convertible<PixelType, int>));
116 itkConceptMacro(IntConvertibleToInputCheck, (Concept::Convertible<int, PixelType>));
118
119protected:
121 ~BinaryThinningImageFilter() override = default;
122
124 void
125 GenerateData() override;
126
128 void
130
132 void
134}; // end of BinaryThinningImageFilter
135 // class
136} // end namespace itk
137
138#ifndef ITK_MANUAL_INSTANTIATION
139# include "itkBinaryThinningImageFilter.hxx"
140#endif
141
142#endif
OutputImageType * GetThinning()
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::ConstPointer InputImagePointer
typename RegionType::SizeType SizeType
static constexpr unsigned int OutputImageDimension
typename InputImageType::PixelType PixelType
static constexpr unsigned int InputImageDimension
NeighborhoodIterator< TInputImage > NeighborhoodIteratorType
~BinaryThinningImageFilter() override=default
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename InputImageType::RegionType RegionType
typename RegionType::IndexType IndexType
typename OutputImageType::PixelType OutputImagePixelType
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....