21 #include <opencv2/opencv.hpp> 28 #include "modules/perception/camera/lib/lane/common/proto/darkSCNN.pb.h" 29 #include "modules/perception/camera/lib/lane/postprocessor/darkSCNN/proto/darkSCNN_postprocessor.pb.h" 33 namespace perception {
38 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
61 trans_mat_ = homography_im2car.cast<
float>();
62 trans_mat_inv = trans_mat_.inverse();
65 std::string
Name()
const override;
76 int input_offset_x_ = 0;
77 int input_offset_y_ = 312;
78 int lane_map_width_ = 640;
79 int lane_map_height_ = 480;
82 int roi_height_ = 768;
84 int roi_width_ = 1920;
87 size_t minNumPoints_ = 8;
94 float max_longitudinal_distance_ = 300.0f;
95 float min_longitudinal_distance_ = 0.0f;
100 lane::DarkSCNNLanePostprocessorParam lane_postprocessor_param_;
103 Eigen::Matrix<float, 3, 3> trans_mat_;
104 Eigen::Matrix<float, 3, 3> trans_mat_inv;
106 std::vector<std::vector<Eigen::Matrix<float, 2, 1>>> xy_points;
107 std::vector<std::vector<Eigen::Matrix<float, 2, 1>>> uv_points;
Definition: camera_frame.h:33
std::vector< std::vector< LanePointInfo > > GetLanelinePointSet()
bool Process3D(const LanePostprocessorOptions &options, CameraFrame *frame) override
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
virtual ~DarkSCNNLanePostprocessor()
Definition: darkSCNN_lane_postprocessor.h:43
Definition: darkSCNN_lane_postprocessor.h:36
bool Process2D(const LanePostprocessorOptions &options, CameraFrame *frame) override
std::string Name() const override
void SetIm2CarHomography(Eigen::Matrix3d homography_im2car) override
Definition: darkSCNN_lane_postprocessor.h:60
bool Init(const LanePostprocessorInitOptions &options=LanePostprocessorInitOptions()) override
std::vector< LanePointInfo > GetAllInferLinePointSet()
Definition: base_lane_postprocessor.h:36
Definition: base_lane_postprocessor.h:34
Eigen::Matrix3d Matrix3d
Definition: base_map_fwd.h:33
DarkSCNNLanePostprocessor()
Definition: darkSCNN_lane_postprocessor.h:41
Definition: base_lane_postprocessor.h:29