43 #include <pcl/features/feature.h>
55 template <
typename Po
intInT,
typename Po
intOutT>
59 using Ptr = shared_ptr<MomentInvariantsEstimation<PointInT, PointOutT> >;
60 using ConstPtr = shared_ptr<const MomentInvariantsEstimation<PointInT, PointOutT> >;
87 float &j1,
float &j2,
float &j3);
97 float &j1,
float &j2,
float &j3);
109 Eigen::Vector4f xyz_centroid_;
112 Eigen::Vector4f temp_pt_;
116 #ifdef PCL_NO_PRECOMPILE
117 #include <pcl/features/impl/moment_invariants.hpp>
Feature represents the base feature class.
shared_ptr< Feature< PointInT, PointOutT > > Ptr
std::string feature_name_
The feature name.
shared_ptr< const Feature< PointInT, PointOutT > > ConstPtr
MomentInvariantsEstimation estimates the 3 moment invariants (j1, j2, j3) at each 3D point.
MomentInvariantsEstimation()
Empty constructor.
void computeFeature(PointCloudOut &output) override
Estimate moment invariants for all points given in <setInputCloud (), setIndices ()> using the surfac...
typename Feature< PointInT, PointOutT >::PointCloudOut PointCloudOut
void computePointMomentInvariants(const pcl::PointCloud< PointInT > &cloud, const pcl::Indices &indices, float &j1, float &j2, float &j3)
Compute the 3 moment invariants (j1, j2, j3) for a given set of points, using their indices.
IndicesAllocator<> Indices
Type used for indices in PCL.