OpenCV  2.4.13
Open Source Computer Vision
CvMatrix Class Reference

#include <legacy.hpp>

Public Member Functions

 CvMatrix ()
 
 CvMatrix (int _rows, int _cols, int _type)
 
 CvMatrix (int _rows, int _cols, int _type, CvMat *hdr, void *_data=0, int _step=CV_AUTOSTEP)
 
 CvMatrix (int rows, int cols, int type, CvMemStorage *storage, bool alloc_data=true)
 
 CvMatrix (int _rows, int _cols, int _type, void *_data, int _step=CV_AUTOSTEP)
 
 CvMatrix (CvMat *m)
 
 CvMatrix (const CvMatrix &m)
 
 CvMatrix (const char *filename, const char *matname=0, int color=-1)
 
 CvMatrix (CvFileStorage *fs, const char *mapname, const char *matname)
 
 CvMatrix (CvFileStorage *fs, const char *seqname, int idx)
 
 ~CvMatrix ()
 
CvMatrix clone ()
 
void set (CvMat *m, bool add_ref)
 
void create (int _rows, int _cols, int _type)
 
void addref () const
 
void release ()
 
void clear ()
 
bool load (const char *filename, const char *matname=0, int color=-1)
 
bool read (CvFileStorage *fs, const char *mapname, const char *matname)
 
bool read (CvFileStorage *fs, const char *seqname, int idx)
 
void save (const char *filename, const char *matname, const int *params=0)
 
void write (CvFileStorage *fs, const char *matname)
 
void show (const char *window_name)
 
bool is_valid ()
 
int rows () const
 
int cols () const
 
CvSize size () const
 
int type () const
 
int depth () const
 
int channels () const
 
int pix_size () const
 
uchardata ()
 
const uchardata () const
 
int step () const
 
void set_data (void *_data, int _step=CV_AUTOSTEP)
 
ucharrow (int i)
 
const ucharrow (int i) const
 
 operator const CvMat * () const
 
 operator CvMat * ()
 
CvMatrixoperator= (const CvMatrix &_m)
 

Protected Attributes

CvMatmatrix
 

Constructor & Destructor Documentation

CvMatrix::CvMatrix ( )
inline
CvMatrix::CvMatrix ( int  _rows,
int  _cols,
int  _type 
)
inline
CvMatrix::CvMatrix ( int  _rows,
int  _cols,
int  _type,
CvMat hdr,
void _data = 0,
int  _step = CV_AUTOSTEP 
)
inline
CvMatrix::CvMatrix ( int  rows,
int  cols,
int  type,
CvMemStorage storage,
bool  alloc_data = true 
)
CvMatrix::CvMatrix ( int  _rows,
int  _cols,
int  _type,
void _data,
int  _step = CV_AUTOSTEP 
)
inline
CvMatrix::CvMatrix ( CvMat m)
inline
CvMatrix::CvMatrix ( const CvMatrix m)
inline
CvMatrix::CvMatrix ( const char *  filename,
const char *  matname = 0,
int  color = -1 
)
inline
CvMatrix::CvMatrix ( CvFileStorage fs,
const char *  mapname,
const char *  matname 
)
inline
CvMatrix::CvMatrix ( CvFileStorage fs,
const char *  seqname,
int  idx 
)
inline
CvMatrix::~CvMatrix ( )
inline

Member Function Documentation

void CvMatrix::addref ( ) const
inline
int CvMatrix::channels ( ) const
inline
void CvMatrix::clear ( )
inline
CvMatrix CvMatrix::clone ( )
inline
int CvMatrix::cols ( ) const
inline
void CvMatrix::create ( int  _rows,
int  _cols,
int  _type 
)
inline
uchar* CvMatrix::data ( )
inline
const uchar* CvMatrix::data ( ) const
inline
int CvMatrix::depth ( ) const
inline
bool CvMatrix::is_valid ( )
inline
bool CvMatrix::load ( const char *  filename,
const char *  matname = 0,
int  color = -1 
)
CvMatrix::operator const CvMat * ( ) const
inline
CvMatrix::operator CvMat * ( )
inline
CvMatrix& CvMatrix::operator= ( const CvMatrix _m)
inline
int CvMatrix::pix_size ( ) const
inline
bool CvMatrix::read ( CvFileStorage fs,
const char *  mapname,
const char *  matname 
)
bool CvMatrix::read ( CvFileStorage fs,
const char *  seqname,
int  idx 
)
void CvMatrix::release ( )
inline
uchar* CvMatrix::row ( int  i)
inline
const uchar* CvMatrix::row ( int  i) const
inline
int CvMatrix::rows ( ) const
inline
void CvMatrix::save ( const char *  filename,
const char *  matname,
const int params = 0 
)
void CvMatrix::set ( CvMat m,
bool  add_ref 
)
inline
void CvMatrix::set_data ( void _data,
int  _step = CV_AUTOSTEP 
)
inline
void CvMatrix::show ( const char *  window_name)
CvSize CvMatrix::size ( ) const
inline
int CvMatrix::step ( ) const
inline
int CvMatrix::type ( ) const
inline
void CvMatrix::write ( CvFileStorage fs,
const char *  matname 
)

Member Data Documentation

CvMat* CvMatrix::matrix
protected

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