Go to the documentation of this file. 1 #ifndef SCOREPRIMITIVESHAPEVISITOR_HEADER
2 #define SCOREPRIMITIVESHAPEVISITOR_HEADER
13 template <
class Po
intCompT,
class OctreeT>
22 m_pointComp(distThresh, normalThresh)
53 m_shapeIndex = &shapeIndex;
62 template <
class ShapeT>
70 m_oct->Score(primShape.Internal(),
this);
73 template <
class ShapeT,
class OctT>
75 operator()(
const ShapeT& shape,
const OctT& oct,
size_t i)
77 if ((*m_shapeIndex)[i] != -1)
81 if (m_pointComp(shape, oct, i))
90 return m_pointComp.DistanceThresh();
103 const OctreeT* m_oct;
110 template <
class Po
intCompT,
class OctreeT>
IndicesType * GetIndices()
ScorePrimitiveShapeVisitor(float distThresh, float normalThresh)
void Visit(const ShapeT &primShape)
PointCompT PointCompatibilityFunc
void push_back(const T &v)
void SetShapeIndex(const MiscLib::Vector< int > &shapeIndex)
void operator()(const ShapeT &shape, const OctT &oct, size_t i)
pcl::PointIndices::Ptr indices(const PCG &g)
Retrieve the indices of the points of the point cloud stored in a point cloud graph that actually bel...
ScorePrimitiveShapeVisitorImpl(float distThresh, float normalThresh)
void SetIndices(IndicesType *indices)
const MiscLib::Vector< int > & GetShapeIndex()
void SetOctree(const OctreeT &oct)
const OctreeT & GetOctree() const
MiscLib::RefCounted< MiscLib::Vector< size_t > > IndicesType
const PointCompatibilityFunc & PointCompFunc() const