cv::SparseMat Class Reference

#include <cxcore.hpp>

Inherited by cv::SparseMat_< _Tp >.

List of all members.

Classes

struct  Hdr
struct  Node

Public Types

enum  { MAGIC_VAL = 0x42FD0000, MAX_DIM = CV_MAX_DIM, HASH_SCALE = 0x5bd1e995, HASH_BIT = 0x80000000 }
typedef SparseMatIterator iterator
typedef SparseMatConstIterator const_iterator

Public Member Functions

 SparseMat ()
 SparseMat (int dims, const int *_sizes, int _type)
 SparseMat (const SparseMat &m)
 SparseMat (const Mat &m, bool try1d=false)
 SparseMat (const MatND &m)
 SparseMat (const CvSparseMat *m)
 ~SparseMat ()
SparseMatoperator= (const SparseMat &m)
SparseMatoperator= (const Mat &m)
SparseMatoperator= (const MatND &m)
SparseMat clone () const
void copyTo (SparseMat &m) const
void copyTo (Mat &m) const
void copyTo (MatND &m) const
void convertTo (SparseMat &m, int rtype, double alpha=1) const
void convertTo (Mat &m, int rtype, double alpha=1, double beta=0) const
void convertTo (MatND &m, int rtype, double alpha=1, double beta=0) const
void assignTo (SparseMat &m, int type=-1) const
void create (int dims, const int *_sizes, int _type)
void clear ()
void addref ()
void release ()
 operator CvSparseMat * () const
size_t elemSize () const
size_t elemSize1 () const
int type () const
int depth () const
int channels () const
const int * size () const
int size (int i) const
int dims () const
size_t nzcount () const
size_t hash (int i0) const
size_t hash (int i0, int i1) const
size_t hash (int i0, int i1, int i2) const
size_t hash (const int *idx) const
ucharptr (int i0, bool createMissing, size_t *hashval=0)
ucharptr (int i0, int i1, bool createMissing, size_t *hashval=0)
ucharptr (int i0, int i1, int i2, bool createMissing, size_t *hashval=0)
ucharptr (const int *idx, bool createMissing, size_t *hashval=0)
template<typename _Tp >
_Tp & ref (int i0, size_t *hashval=0)
template<typename _Tp >
_Tp value (int i0, size_t *hashval=0) const
template<typename _Tp >
const _Tp * find (int i0, size_t *hashval=0) const
template<typename _Tp >
_Tp & ref (int i0, int i1, size_t *hashval=0)
template<typename _Tp >
_Tp value (int i0, int i1, size_t *hashval=0) const
template<typename _Tp >
const _Tp * find (int i0, int i1, size_t *hashval=0) const
template<typename _Tp >
_Tp & ref (int i0, int i1, int i2, size_t *hashval=0)
template<typename _Tp >
_Tp value (int i0, int i1, int i2, size_t *hashval=0) const
template<typename _Tp >
const _Tp * find (int i0, int i1, int i2, size_t *hashval=0) const
template<typename _Tp >
_Tp & ref (const int *idx, size_t *hashval=0)
template<typename _Tp >
_Tp value (const int *idx, size_t *hashval=0) const
template<typename _Tp >
const _Tp * find (const int *idx, size_t *hashval=0) const
void erase (int i0, int i1, size_t *hashval=0)
void erase (int i0, int i1, int i2, size_t *hashval=0)
void erase (const int *idx, size_t *hashval=0)
SparseMatIterator begin ()
SparseMatConstIterator begin () const
SparseMatIterator end ()
SparseMatConstIterator end () const
template<typename _Tp >
SparseMatIterator_< _Tp > begin ()
template<typename _Tp >
SparseMatConstIterator_< _Tp > begin () const
template<typename _Tp >
SparseMatIterator_< _Tp > end ()
template<typename _Tp >
SparseMatConstIterator_< _Tp > end () const
template<typename _Tp >
_Tp & value (Node *n)
template<typename _Tp >
const _Tp & value (const Node *n) const
Nodenode (size_t nidx)
const Nodenode (size_t nidx) const
ucharnewNode (const int *idx, size_t hashval)
void removeNode (size_t hidx, size_t nidx, size_t previdx)
void resizeHashTab (size_t newsize)

Public Attributes

int flags
Hdrhdr

Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
MAGIC_VAL 
MAX_DIM 
HASH_SCALE 
HASH_BIT 

Constructor & Destructor Documentation

cv::SparseMat::SparseMat (  ) 
cv::SparseMat::SparseMat ( int  dims,
const int *  _sizes,
int  _type 
)
cv::SparseMat::SparseMat ( const SparseMat m  ) 
cv::SparseMat::SparseMat ( const Mat m,
bool  try1d = false 
)
cv::SparseMat::SparseMat ( const MatND m  ) 
cv::SparseMat::SparseMat ( const CvSparseMat m  ) 
cv::SparseMat::~SparseMat (  ) 

Member Function Documentation

SparseMat & cv::SparseMat::operator= ( const SparseMat m  ) 

Reimplemented in cv::SparseMat_< _Tp >.

SparseMat & cv::SparseMat::operator= ( const Mat m  ) 

Reimplemented in cv::SparseMat_< _Tp >.

SparseMat & cv::SparseMat::operator= ( const MatND m  ) 

Reimplemented in cv::SparseMat_< _Tp >.

SparseMat cv::SparseMat::clone (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

void cv::SparseMat::copyTo ( SparseMat m  )  const
void cv::SparseMat::copyTo ( Mat m  )  const
void cv::SparseMat::copyTo ( MatND m  )  const
void cv::SparseMat::convertTo ( SparseMat m,
int  rtype,
double  alpha = 1 
) const
void cv::SparseMat::convertTo ( Mat m,
int  rtype,
double  alpha = 1,
double  beta = 0 
) const
void cv::SparseMat::convertTo ( MatND m,
int  rtype,
double  alpha = 1,
double  beta = 0 
) const
void cv::SparseMat::assignTo ( SparseMat m,
int  type = -1 
) const
void cv::SparseMat::create ( int  dims,
const int *  _sizes,
int  _type 
)
void cv::SparseMat::clear (  ) 
void cv::SparseMat::addref (  ) 
void cv::SparseMat::release (  ) 
cv::SparseMat::operator CvSparseMat * (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

size_t cv::SparseMat::elemSize (  )  const
size_t cv::SparseMat::elemSize1 (  )  const
int cv::SparseMat::type (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

int cv::SparseMat::depth (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

int cv::SparseMat::channels (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

const int * cv::SparseMat::size (  )  const
int cv::SparseMat::size ( int  i  )  const
int cv::SparseMat::dims (  )  const
size_t cv::SparseMat::nzcount (  )  const
size_t cv::SparseMat::hash ( int  i0  )  const
size_t cv::SparseMat::hash ( int  i0,
int  i1 
) const
size_t cv::SparseMat::hash ( int  i0,
int  i1,
int  i2 
) const
size_t cv::SparseMat::hash ( const int *  idx  )  const
uchar* cv::SparseMat::ptr ( int  i0,
bool  createMissing,
size_t *  hashval = 0 
)
uchar* cv::SparseMat::ptr ( int  i0,
int  i1,
bool  createMissing,
size_t *  hashval = 0 
)
uchar* cv::SparseMat::ptr ( int  i0,
int  i1,
int  i2,
bool  createMissing,
size_t *  hashval = 0 
)
uchar* cv::SparseMat::ptr ( const int *  idx,
bool  createMissing,
size_t *  hashval = 0 
)
template<typename _Tp >
_Tp & cv::SparseMat::ref ( int  i0,
size_t *  hashval = 0 
)

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
_Tp cv::SparseMat::value ( int  i0,
size_t *  hashval = 0 
) const
template<typename _Tp >
const _Tp * cv::SparseMat::find ( int  i0,
size_t *  hashval = 0 
) const
template<typename _Tp >
_Tp & cv::SparseMat::ref ( int  i0,
int  i1,
size_t *  hashval = 0 
)

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
_Tp cv::SparseMat::value ( int  i0,
int  i1,
size_t *  hashval = 0 
) const
template<typename _Tp >
const _Tp * cv::SparseMat::find ( int  i0,
int  i1,
size_t *  hashval = 0 
) const
template<typename _Tp >
_Tp & cv::SparseMat::ref ( int  i0,
int  i1,
int  i2,
size_t *  hashval = 0 
)

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
_Tp cv::SparseMat::value ( int  i0,
int  i1,
int  i2,
size_t *  hashval = 0 
) const
template<typename _Tp >
const _Tp * cv::SparseMat::find ( int  i0,
int  i1,
int  i2,
size_t *  hashval = 0 
) const
template<typename _Tp >
_Tp & cv::SparseMat::ref ( const int *  idx,
size_t *  hashval = 0 
)

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
_Tp cv::SparseMat::value ( const int *  idx,
size_t *  hashval = 0 
) const
template<typename _Tp >
const _Tp * cv::SparseMat::find ( const int *  idx,
size_t *  hashval = 0 
) const
void cv::SparseMat::erase ( int  i0,
int  i1,
size_t *  hashval = 0 
)
void cv::SparseMat::erase ( int  i0,
int  i1,
int  i2,
size_t *  hashval = 0 
)
void cv::SparseMat::erase ( const int *  idx,
size_t *  hashval = 0 
)
SparseMatIterator_< _Tp > cv::SparseMat::begin (  ) 

Reimplemented in cv::SparseMat_< _Tp >.

SparseMatConstIterator_< _Tp > cv::SparseMat::begin (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

SparseMatIterator_< _Tp > cv::SparseMat::end (  ) 

Reimplemented in cv::SparseMat_< _Tp >.

SparseMatConstIterator_< _Tp > cv::SparseMat::end (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
SparseMatIterator_<_Tp> cv::SparseMat::begin (  ) 

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
SparseMatConstIterator_<_Tp> cv::SparseMat::begin (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
SparseMatIterator_<_Tp> cv::SparseMat::end (  ) 

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
SparseMatConstIterator_<_Tp> cv::SparseMat::end (  )  const

Reimplemented in cv::SparseMat_< _Tp >.

template<typename _Tp >
_Tp & cv::SparseMat::value ( Node n  ) 
template<typename _Tp >
const _Tp & cv::SparseMat::value ( const Node n  )  const
SparseMat::Node * cv::SparseMat::node ( size_t  nidx  ) 
const SparseMat::Node * cv::SparseMat::node ( size_t  nidx  )  const
uchar* cv::SparseMat::newNode ( const int *  idx,
size_t  hashval 
)
void cv::SparseMat::removeNode ( size_t  hidx,
size_t  nidx,
size_t  previdx 
)
void cv::SparseMat::resizeHashTab ( size_t  newsize  ) 

Member Data Documentation


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