Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Attributes | List of all members
apollo::perception::base::Image8U Class Reference

A wrapper around Blob holders serving as the basic computational unit for images. More...

#include <image_8u.h>

Collaboration diagram for apollo::perception::base::Image8U:
Collaboration graph

Public Member Functions

 Image8U ()
 
 Image8U (int rows, int cols, Color type, std::shared_ptr< Blob< uint8_t >> blob, int offset=0)
 
 Image8U (int rows, int cols, Color type)
 
 Image8U (const Image8U &src)
 
Image8Uoperator= (const Image8U &src)
 
 ~Image8U ()
 
uint8_t * mutable_cpu_data ()
 
uint8_t * mutable_gpu_data ()
 
const uint8_t * cpu_data () const
 
const uint8_t * gpu_data () const
 
const uint8_t * cpu_ptr (int row=0) const
 
const uint8_t * gpu_ptr (int row=0) const
 
uint8_t * mutable_cpu_ptr (int row=0)
 
uint8_t * mutable_gpu_ptr (int row=0)
 
Color type () const
 
int rows () const
 
int cols () const
 
int channels () const
 
int width_step () const
 
int total () const
 
Image8U operator() (const Rect< int > &roi)
 
std::shared_ptr< Blob< uint8_t > > blob ()
 
std::shared_ptr< const Blob< uint8_t > > blob () const
 

Protected Attributes

int rows_
 
int cols_
 
Color type_
 
int channels_
 
int width_step_
 
std::shared_ptr< Blob< uint8_t > > blob_
 
int offset_
 

Detailed Description

A wrapper around Blob holders serving as the basic computational unit for images.

TODO(dox): more thorough description.

Constructor & Destructor Documentation

◆ Image8U() [1/4]

apollo::perception::base::Image8U::Image8U ( )
inline

◆ Image8U() [2/4]

apollo::perception::base::Image8U::Image8U ( int  rows,
int  cols,
Color  type,
std::shared_ptr< Blob< uint8_t >>  blob,
int  offset = 0 
)
inline

◆ Image8U() [3/4]

apollo::perception::base::Image8U::Image8U ( int  rows,
int  cols,
Color  type 
)
inline

◆ Image8U() [4/4]

apollo::perception::base::Image8U::Image8U ( const Image8U src)
inline

◆ ~Image8U()

apollo::perception::base::Image8U::~Image8U ( )
inline

Member Function Documentation

◆ blob() [1/2]

std::shared_ptr<Blob<uint8_t> > apollo::perception::base::Image8U::blob ( )
inline

◆ blob() [2/2]

std::shared_ptr<const Blob<uint8_t> > apollo::perception::base::Image8U::blob ( ) const
inline

◆ channels()

int apollo::perception::base::Image8U::channels ( ) const
inline

◆ cols()

int apollo::perception::base::Image8U::cols ( ) const
inline

◆ cpu_data()

const uint8_t* apollo::perception::base::Image8U::cpu_data ( ) const
inline

◆ cpu_ptr()

const uint8_t* apollo::perception::base::Image8U::cpu_ptr ( int  row = 0) const
inline

◆ gpu_data()

const uint8_t* apollo::perception::base::Image8U::gpu_data ( ) const
inline

◆ gpu_ptr()

const uint8_t* apollo::perception::base::Image8U::gpu_ptr ( int  row = 0) const
inline

◆ mutable_cpu_data()

uint8_t* apollo::perception::base::Image8U::mutable_cpu_data ( )
inline

◆ mutable_cpu_ptr()

uint8_t* apollo::perception::base::Image8U::mutable_cpu_ptr ( int  row = 0)
inline

◆ mutable_gpu_data()

uint8_t* apollo::perception::base::Image8U::mutable_gpu_data ( )
inline

◆ mutable_gpu_ptr()

uint8_t* apollo::perception::base::Image8U::mutable_gpu_ptr ( int  row = 0)
inline

◆ operator()()

Image8U apollo::perception::base::Image8U::operator() ( const Rect< int > &  roi)
inline

◆ operator=()

Image8U& apollo::perception::base::Image8U::operator= ( const Image8U src)
inline

◆ rows()

int apollo::perception::base::Image8U::rows ( ) const
inline

◆ total()

int apollo::perception::base::Image8U::total ( ) const
inline

◆ type()

Color apollo::perception::base::Image8U::type ( ) const
inline

◆ width_step()

int apollo::perception::base::Image8U::width_step ( ) const
inline

Member Data Documentation

◆ blob_

std::shared_ptr<Blob<uint8_t> > apollo::perception::base::Image8U::blob_
protected

◆ channels_

int apollo::perception::base::Image8U::channels_
protected

◆ cols_

int apollo::perception::base::Image8U::cols_
protected

◆ offset_

int apollo::perception::base::Image8U::offset_
protected

◆ rows_

int apollo::perception::base::Image8U::rows_
protected

◆ type_

Color apollo::perception::base::Image8U::type_
protected

◆ width_step_

int apollo::perception::base::Image8U::width_step_
protected

The documentation for this class was generated from the following file: