GSLAM  3.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GImage Class Reference

The GImage class is a tiny implementation of image for removing dependency of opencv. More...

Public Member Functions

 GImage (int rows_, int cols_, int type=GImageType<>::Type, uchar *src=NULL, bool copy=false, int imageAlign=16)
 
 GImage (const GImage &ref)
 
GImageoperator= (const GImage &rhs)
 
bool empty () const
 
int elemSize () const
 
int elemSize1 () const
 
int channels () const
 
int type () const
 
int total () const
 
GImage clone () const
 
template<typename C >
C & at (int idx)
 
template<typename C >
C & at (int ix, int iy)
 
void release ()
 
template<typename _Tp >
_Tp * ptr (int i0=0)
 
template<typename _Tp >
const _Tp * ptr (int i0=0) const
 
const GImage row (int idx=0) const
 
int getWidth () const
 
int getHeight () const
 

Static Public Member Functions

static GImage create (int rows, int cols, int type=GImageType<>::Type, uchar *src=NULL, bool copy=false, int imageAlign=16)
 
static GImage zeros (int rows, int cols, int type=GImageType<>::Type, uchar *src=NULL, bool copy=false, int imageAlign=16)
 

Public Attributes

int cols
 
int rows
 
int flags
 
uchar * data
 
int * refCount
 

Detailed Description

The GImage class is a tiny implementation of image for removing dependency of opencv.

Most APIs are corrosponding to "cv::Mat".