Apollo 10.0
自动驾驶开放平台
apollo::perception::camera::image2D< T > 模板结构体 参考

#include <image_data_operations_rpp.h>

apollo::perception::camera::image2D< T > 的协作图:

Public 成员函数

__device__ image2D (const T *data_pointer, size_t width_step)
 
__device__ T & operator() (const size_t i, const size_t j)
 
__device__ const T & operator() (const size_t i, const size_t j) const
 

Public 属性

unsigned char * data
 
size_t width_step
 

详细描述

template<typename T>
struct apollo::perception::camera::image2D< T >

在文件 image_data_operations_rpp.h26 行定义.

构造及析构函数说明

◆ image2D()

template<typename T >
__device__ apollo::perception::camera::image2D< T >::image2D ( const T *  data_pointer,
size_t  width_step 
)
inline

在文件 image_data_operations_rpp.h29 行定义.

31 data = reinterpret_cast<unsigned char *>(const_cast<T *>(data_pointer));
32 }

成员函数说明

◆ operator()() [1/2]

template<typename T >
__device__ T & apollo::perception::camera::image2D< T >::operator() ( const size_t  i,
const size_t  j 
)
inline

在文件 image_data_operations_rpp.h33 行定义.

33 {
34 return *(reinterpret_cast<T *>(data + width_step * j + i * sizeof(T)));
35 }

◆ operator()() [2/2]

template<typename T >
__device__ const T & apollo::perception::camera::image2D< T >::operator() ( const size_t  i,
const size_t  j 
) const
inline

在文件 image_data_operations_rpp.h36 行定义.

36 {
37 return *(reinterpret_cast<T *>(data + width_step * j + i * sizeof(T)));
38 }

类成员变量说明

◆ data

template<typename T >
unsigned char* apollo::perception::camera::image2D< T >::data

在文件 image_data_operations_rpp.h27 行定义.

◆ width_step

template<typename T >
size_t apollo::perception::camera::image2D< T >::width_step

在文件 image_data_operations_rpp.h28 行定义.


该结构体的文档由以下文件生成: