38 #ifndef PCL_GRAPH_EDGE_WEIGHT_COMPUTER_TERMS_H
39 #define PCL_GRAPH_EDGE_WEIGHT_COMPUTER_TERMS_H
41 #include <pcl/point_types.h>
61 template <
typename Po
intT>
float
64 return (p2.getVector3fMap() - p1.getVector3fMap()).squaredNorm();
84 template <
typename Po
intT>
float
87 return (0.5 * (p1.getNormalVector3fMap() - p2.getNormalVector3fMap()).squaredNorm());
106 template <
typename Po
intT>
float
109 return (std::fabs(p1.curvature) * std::fabs(p2.curvature));
128 template <
typename Po
intT>
float
131 return ((p1.getBGRVector3cMap().template cast<float> () -
132 p2.getBGRVector3cMap().template cast<float> ()).norm() / 255.0f);