22 #include "modules/perception/common/noncopyable.h" 23 #include "modules/perception/lib/common/twod_threed_util.h" 30 namespace perception {
67 void Init(
const float *k_mat,
int width,
int height) {
68 memcpy(k_mat_, k_mat,
sizeof(
float) * 9);
74 float center[3],
float hwl[3],
float *
ry);
77 float center[3],
float hwl[3],
float *ry);
80 float GetProjectionScore(
float ry,
const float *
bbox,
const float *hwl,
82 const bool &check_truncation =
true)
const {
85 float *bbox_null_1 =
nullptr;
86 float *bbox_null_2 =
nullptr;
88 hwl, center, check_truncation,
89 bbox_null_1, bbox_null_2);
93 bool AdjustCenterWithGround(
const float *bbox,
const float *hwl,
float ry,
94 const float *
plane,
float *center)
const;
97 bool PostRefineCenterWithGroundBoundary(
98 const float *bbox,
const float *hwl,
float ry,
const float *plane,
102 int GetDepthXPair(
const float *bbox,
const float *hwl,
const float *center,
103 float ry,
float *depth_pts,
int *x_pts,
104 float *pts_c =
nullptr)
const;
107 float k_mat_[9] = {0};
Definition: obj_postprocessor.h:33
float weight_iou
Definition: obj_postprocessor.h:54
float bbox[4]
Definition: obj_postprocessor.h:44
float iou_good
Definition: obj_postprocessor.h:59
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
float plane[4]
Definition: obj_postprocessor.h:35
float * disp_map
Definition: obj_postprocessor.h:40
Definition: obj_postprocessor.h:62
float learning_r_decay
Definition: obj_postprocessor.h:56
void GenRotMatrix(const T &ry, T *rot)
Definition: twod_threed_util.h:101
int max_nr_iter
Definition: obj_postprocessor.h:52
std::vector< LineSegment2D< float > > line_segs
Definition: obj_postprocessor.h:36
float hwl[3]
Definition: obj_postprocessor.h:43
~ObjPostProcessor()
Definition: obj_postprocessor.h:65
float ry
Definition: obj_postprocessor.h:45
Definition: twod_threed_util.h:33
float dist_far
Definition: obj_postprocessor.h:57
ObjPostProcessor()
Definition: obj_postprocessor.h:64
ObjPostProcessorParams()
Definition: obj_postprocessor.h:50
T GetScoreViaRotDimensionCenter(const T *k_mat, int width, int height, const T *bbox, const T *rot, const T *hwl, const T *location, const bool &check_truncation, T *bbox_res=nullptr, T *bbox_near=nullptr)
Definition: twod_threed_util.h:177
float baseline
Definition: obj_postprocessor.h:41
Definition: obj_postprocessor.h:49
float shrink_ratio_iou
Definition: obj_postprocessor.h:58
float learning_r
Definition: obj_postprocessor.h:55
bool check_lowerbound
Definition: obj_postprocessor.h:37
void Init(const float *k_mat, int width, int height)
Definition: obj_postprocessor.h:67
float sampling_ratio_low
Definition: obj_postprocessor.h:53