1 #ifndef PCL_TRACKING_IMPL_DISTANCE_COHERENCE_H_
2 #define PCL_TRACKING_IMPL_DISTANCE_COHERENCE_H_
4 #include <pcl/tracking/distance_coherence.h>
8 template <
typename Po
intInT>
12 Eigen::Vector4f p = source.getVector4fMap();
13 Eigen::Vector4f p_dash = target.getVector4fMap();
14 double d = (p - p_dash).norm();
15 return 1.0 / (1.0 + d * d * weight_);
20 #define PCL_INSTANTIATE_DistanceCoherence(T) \
21 template class PCL_EXPORTS pcl::tracking::DistanceCoherence<T>;
double computeCoherence(PointInT &source, PointInT &target) override
return the distance coherence between the two points.