ITK  6.0.0
Insight Toolkit
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{
61template <typename TInputImage, typename TOutputImage>
62class ITK_TEMPLATE_EXPORT BinaryThinningImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63{
64public:
65 ITK_DISALLOW_COPY_AND_MOVE(BinaryThinningImageFilter);
66
72
74 itkNewMacro(Self);
75
77 itkOverrideGetNameOfClassMacro(BinaryThinningImageFilter);
78
80 using InputImageType = TInputImage;
81
83 using OutputImageType = TOutputImage;
84
87
90
92 using PixelType = typename InputImageType::PixelType;
93
96
99
102
104 using typename Superclass::OutputImagePixelType;
105
108
112
114 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
115 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
116
117#ifdef ITK_USE_CONCEPT_CHECKING
118 // Begin concept checking
120 itkConceptMacro(InputAdditiveOperatorsCheck, (Concept::AdditiveOperators<PixelType>));
121 itkConceptMacro(InputConvertibleToIntCheck, (Concept::Convertible<PixelType, int>));
122 itkConceptMacro(IntConvertibleToInputCheck, (Concept::Convertible<int, PixelType>));
124 // End concept checking
125#endif
126
127protected:
129 ~BinaryThinningImageFilter() override = default;
130
132 void
133 GenerateData() override;
134
136 void
138
140 void
142}; // end of BinaryThinningImageFilter
143 // class
144} // end namespace itk
145
146#ifndef ITK_MANUAL_INSTANTIATION
147# include "itkBinaryThinningImageFilter.hxx"
148#endif
149
150#endif
This filter computes one-pixel-wide edges of the input image.
OutputImageType * GetThinning()
typename RegionType::SizeType SizeType
typename InputImageType::PixelType PixelType
~BinaryThinningImageFilter() override=default
typename InputImageType::RegionType RegionType
typename RegionType::IndexType IndexType
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....