9 return sqrt(vec.x*vec.x + vec.y*vec.y + vec.z*vec.z);
16 double dot = ray1.x * ray2.x + ray1.y * ray2.y + ray1.z * ray2.z;
24 const cv::Point2d && left,
const cv::Point2d && center,
25 const cv::Point2d && right,
double & min,
double & max) {
27 cv::Point2d rect_pixel_left = camera_model.
rectifyPoint(left);
30 cv::Point2d rect_pixel_right = camera_model.
rectifyPoint(right);
33 cv::Point2d rect_pixel_center = camera_model.
rectifyPoint(center);
cv::Point3d projectPixelTo3dRay(const cv::Point2d &uv_rect) const
double lengthOfVector(const cv::Point3d &vec)
lengthOfVector calculate the length of the 3D vector
void calcFieldOfView(const image_geometry::PinholeCameraModel &camera_model, const cv::Point2d &&left, const cv::Point2d &¢er, const cv::Point2d &&right, double &min, double &max)
fieldOfView calculates field of view (angle)
cv::Point2d rectifyPoint(const cv::Point2d &uv_raw) const
double angleBetweenRays(const cv::Point3d &ray1, const cv::Point3d &ray2)
angleBetweenRays calculates angle between two rays in degrees