ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryThinningImageFilter3D.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 itkBinaryThinningImageFilter3D_h
19#define itkBinaryThinningImageFilter3D_h
20
25
26namespace itk
27{
59
60template <typename TInputImage, typename TOutputImage>
61class ITK_TEMPLATE_EXPORT BinaryThinningImageFilter3D : public ImageToImageFilter<TInputImage, TOutputImage>
62{
63public:
64 ITK_DISALLOW_COPY_AND_MOVE(BinaryThinningImageFilter3D);
65
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(BinaryThinningImageFilter3D);
77
79 using InputImageType = TInputImage;
80
82 using OutputImageType = TOutputImage;
83
85 using RegionType = typename InputImageType::RegionType;
86
88 using IndexType = typename RegionType::IndexType;
89
91 using InputImagePixelType = typename InputImageType::PixelType;
92
94 using OutputImagePixelType = typename OutputImageType::PixelType;
95
97 using SizeType = typename RegionType::SizeType;
98
100 using InputImagePointer = typename InputImageType::ConstPointer;
101
103 using OutputImagePointer = typename OutputImageType::Pointer;
104
107
110
113
117
119 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
120 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
121
122 static_assert(InputImageDimension == 3);
123 static_assert(std::is_same_v<InputImagePixelType, OutputImagePixelType>);
128
129protected:
131 ~BinaryThinningImageFilter3D() override = default;
132 void
133 PrintSelf(std::ostream & os, Indent indent) const override;
134
136 void
137 GenerateData() override;
138
140 void
142
144 void
146
148 bool
149 IsEulerInvariant(const NeighborhoodType & neighbors, const int * LUT);
150
153 void
154 FillEulerLUT(int * LUT);
155
160 bool
161 IsSimplePoint(const NeighborhoodType & neighbors);
162
166 void
167 OctreeLabeling(int octant, int label, int * cube);
168
169}; // end of BinaryThinningImageFilter3D class
170
171} // end namespace itk
172
173#ifndef ITK_MANUAL_INSTANTIATION
174# include "itkBinaryThinningImageFilter3D.hxx"
175#endif
176
177#endif // itkBinaryThinningImageFilter3D_h
~BinaryThinningImageFilter3D() override=default
OutputImageType * GetThinning()
bool IsEulerInvariant(const NeighborhoodType &neighbors, const int *LUT)
typename OutputImageType::Pointer OutputImagePointer
void OctreeLabeling(int octant, int label, int *cube)
ConstantBoundaryCondition< TInputImage > ConstBoundaryConditionType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::RegionType RegionType
typename InputImageType::PixelType InputImagePixelType
NeighborhoodIterator< TInputImage, ConstBoundaryConditionType > NeighborhoodIteratorType
typename NeighborhoodIteratorType::NeighborhoodType NeighborhoodType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename InputImageType::ConstPointer InputImagePointer
bool IsSimplePoint(const NeighborhoodType &neighbors)
Neighborhood< PixelType, Self::Dimension > NeighborhoodType
This boundary condition returns a constant value for out-of-bounds image pixels.
Control indentation during Print() invocation.
Definition itkIndent.h:53
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....