ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPointFeature.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 itkPointFeature_h
19#define itkPointFeature_h
20
21#include "itkPointsLocator.h"
22#include "itkMeshToMeshFilter.h"
23
24namespace itk
25{
26
34template <typename TInputPointSet, typename TOutputPointSet>
35class PointFeature : public itk::MeshToMeshFilter<TInputPointSet, TOutputPointSet>
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(PointFeature);
39
40 static constexpr unsigned int InputDimension = TInputPointSet::PointDimension;
41 static constexpr unsigned int OutputDimension = TOutputPointSet::PointDimension;
42
43 using InputPointSetType = TInputPointSet;
44 using OutputPointSetType = TOutputPointSet;
45 using InputPixelType = typename InputPointSetType::PixelType;
46 using OutputPixelType = typename OutputPointSetType::PixelType;
47
53
54 using PointType = typename TInputPointSet::PointType;
55 using PointIdentifier = typename TInputPointSet::PointIdentifier;
56 using PointsVectorContainer = typename TInputPointSet::PointsVectorContainer;
57
58 using InputPointSetPointsContainerConstPointer = typename TInputPointSet::PointsContainerConstPointer;
59 using PointsContainerConstIterator = typename InputPointSetType::PointsContainer::ConstIterator;
62
65 // using FeatureType = std::vector<double>;
68
70 itkOverrideGetNameOfClassMacro(PointFeature);
71
73 itkNewMacro(Self);
74
75 itkGetConstObjectMacro(FpfhFeature, FeatureType);
76
77 void
79 InputPointSetType * input_normals,
80 double radius,
81 unsigned int neighbors);
82
83protected:
85 ~PointFeature() override = default;
86
87 void
88 GenerateData() override;
89
91 ComputePairFeatures(const Vector3d & p1, const Vector3d & n1, const Vector3d & p2, const Vector3d & n2);
92
95 InputPointSetType * input_normals,
96 double radius,
97 unsigned int neighbors);
98
99 void
100 PrintSelf(std::ostream & os, Indent indent) const override;
101
102private:
104};
105} // namespace itk
106
107#ifndef ITK_MANUAL_INSTANTIATION
108# include "itkPointFeature.hxx"
109#endif
110
111#endif // itkPointFeature
Control indentation during Print() invocation.
Definition itkIndent.h:53
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
PointsLocator< VectorContainer< PointIdentifier, PointType > > PointsLocatorType
typename InputPointSetType::PixelType InputPixelType
~PointFeature() override=default
typename OutputPointSetType::PixelType OutputPixelType
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputPointSetType::PointIdentifier PointIdentifier
TOutputPointSet OutputPointSetType
PointFeature< InputPointSetType, OutputPointSetType > Self
void GenerateData() override
VectorContainer< PointIdentifier, double > FeatureType
typename InputPointSetType::PointsContainerConstPointer InputPointSetPointsContainerConstPointer
typename PointsLocatorType::Pointer PointsLocatorTypePointer
Vector4d ComputePairFeatures(const Vector3d &p1, const Vector3d &n1, const Vector3d &p2, const Vector3d &n2)
TInputPointSet InputPointSetType
FeatureTypePointer ComputeSPFHFeature(InputPointSetType *input, InputPointSetType *input_normals, double radius, unsigned int neighbors)
typename InputPointSetType::PointsContainer::ConstIterator PointsContainerConstIterator
typename InputPointSetType::PointsVectorContainer PointsVectorContainer
void ComputeFPFHFeature(InputPointSetType *input, InputPointSetType *input_normals, double radius, unsigned int neighbors)
MeshToMeshFilter< InputPointSetType, OutputPointSetType > Superclass
Accelerate geometric searches for points.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer