Apollo  6.0
Open source self driving car software
camera_lib_calibrator_laneline_lane_calibrator_util.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 #pragma once
17 
18 #include <vector>
19 
20 #include <opencv2/opencv.hpp>
21 
25 
26 namespace apollo {
27 namespace perception {
28 namespace camera {
29 
30 // void get_vanishing_row_from_pitch(const float k_mat[9], int image_width,
31 // int image_height, float cam_pitch,
32 // int *vanishing_row);
33 
34 // bool get_pitch_from_vanishing_row(const float k_mat[9], int image_width,
35 // int image_height, float *cam_pitch);
36 
37 bool draw_vanishing_row_on_image(const cv::Scalar &color, int vanishing_row,
38  cv::Mat *image);
39 
40 // bool draw_distance_line_on_image(const float k_mat[9], const cv::Scalar
41 // &color,
42 // float cam_height, float cam_pitch,
43 // float step_z_line, int nr_lines,
44 // int vanishing_row, cv::Mat *image);
45 
46 // void sample_pts_given_sp_ep(const float sp[2], const float ep[2],
47 // int sample_pts, int width, int height,
48 // std::vector<Eigen::Vector2f> *pts);
49 
50 // void gen_lane_pts(int vanishing_row, int image_width, int image_height,
51 // int nr_lane_pts_left, int nr_lane_pts_right, float
52 // pricipal_x,
53 // float shift_x, std::vector<Eigen::Vector2f> *left_pts,
54 // std::vector<Eigen::Vector2f> *right_pts);
55 
56 void draw_lane_pts(const std::vector<Eigen::Vector2f> &lane_pts,
57  const cv::Scalar &color, cv::Mat *image);
58 
59 } // namespace camera
60 } // namespace perception
61 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void draw_lane_pts(const std::vector< Eigen::Vector2f > &lane_pts, const cv::Scalar &color, cv::Mat *image)
bool draw_vanishing_row_on_image(const cv::Scalar &color, int vanishing_row, cv::Mat *image)