aux/tracking: Remove unused functions.

Use cv::norm instead.
This commit is contained in:
Ryan Pavlik 2019-10-01 17:08:50 -05:00 committed by Jakob Bornecrantz
parent 09f984258f
commit d7d12a69f8

View file

@ -126,22 +126,6 @@ mkpath(char *path)
return 0;
}
//! @todo Templatise?
XRT_MAYBE_UNUSED static float
cv_dist3d_point(cv::Point3f &p, cv::Point3f &q)
{
cv::Point3f d = p - q;
return cv::sqrt(d.x * d.x + d.y * d.y + d.z * d.z);
}
//! @todo Templatise?
XRT_MAYBE_UNUSED static float
cv_dist3d_vec(cv::Vec3f &p, cv::Vec3f &q)
{
cv::Point3f d = p - q;
return cv::sqrt(d.x * d.x + d.y * d.y + d.z * d.z);
}
#ifdef __cplusplus
}