Apollo 11.0
自动驾驶开放平台
apollo::perception::trafficlight::CropBoxWholeImage类 参考

#include <cropbox.h>

类 apollo::perception::trafficlight::CropBoxWholeImage 继承关系图:
apollo::perception::trafficlight::CropBoxWholeImage 的协作图:

Public 成员函数

virtual void getCropBox (const int width, const int height, const base::TrafficLightPtr &light, base::RectI *crop_box)
 Get the crop box object.
 

详细描述

在文件 cropbox.h 第 77 行定义.

成员函数说明

◆ getCropBox()

void apollo::perception::trafficlight::CropBoxWholeImage::getCropBox ( const int  width,
const int  height,
const base::TrafficLightPtr &  light,
base::RectI *  crop_box 
)
virtual

Get the crop box object.

参数
width
height
light
crop_box

实现了 apollo::perception::trafficlight::IGetBox.

在文件 cropbox.cc 第 84 行定义.

88 {
89 if (!camera::OutOfValidRegion(light->region.projection_roi, width, height)
90 && light->region.projection_roi.Area() > 0) {
91 crop_box->x = crop_box->y = 0;
92 crop_box->width = width;
93 crop_box->height = height;
94 return;
95 }
96
97 crop_box->x = 0;
98 crop_box->y = 0;
99 crop_box->width = 0;
100 crop_box->height = 0;
101}
uint32_t height
Height of point cloud
uint32_t width
Width of point cloud
bool OutOfValidRegion(const base::BBox2D< T > box, const T width, const T height, const T border_size=0)
Definition util.h:74

该类的文档由以下文件生成: