cv::Mat cv::Mat_< _Tp > cxcore.hpp @62 MAGIC_VAL 0x42FF0000 AUTO_STEP 0 CONTINUOUS_FLAG CV_MAT_CONT_FLAG int int cv::Mat::flags flags int int cv::Mat::rows rows int int cv::Mat::cols cols size_t size_t cv::Mat::step step uchar * uchar* cv::Mat::data data int * int* cv::Mat::refcount refcount uchar * uchar* cv::Mat::datastart datastart uchar * uchar* cv::Mat::dataend dataend cv::Mat::Mat () Mat cv::Mat::Mat (int _rows, int _cols, int _type) Mat int _rows int _cols int _type Create a new matrix of the given size and type. _rows number of rows _cols number of columns _type an integer representing the MagicType cv::Mat::Mat (Size _size, int _type) Mat Size _size int _type cv::Mat::Mat (int _rows, int _cols, int _type, const Scalar &_s) Mat int _rows int _cols int _type const Scalar & _s cv::Mat::Mat (Size _size, int _type, const Scalar &_s) Mat Size _size int _type const Scalar & _s cv::Mat::Mat (const Mat &m) Mat const Mat & m cv::Mat::Mat (int _rows, int _cols, int _type, void *_data, size_t _step=AUTO_STEP) Mat int _rows int _cols int _type void * _data size_t _step AUTO_STEP Create a matrix header pointing to user-allocated data. If this matrix is further assigned to another matrix, the data will not be copied and no reference counting will be executed. _rows number of rows in the data _cols number of columns in the data _type an integer representing a MagicType of the data _data a pointer to the user-allocated data _step number of bytes to advance from one row to the other. If the value is AUTO_STEP, the number of bytes will be calculated from the type and number of columns. cv::Mat::Mat (Size _size, int _type, void *_data, size_t _step=AUTO_STEP) Mat Size _size int _type void * _data size_t _step AUTO_STEP cv::Mat::Mat (const Mat &m, const Range &rowRange, const Range &colRange) Mat const Mat & m const Range & rowRange const Range & colRange cv::Mat::Mat (const Mat &m, const Rect &roi) Mat const Mat & m const Rect & roi Create a sub-matrix from a bigger matrix m the original matrix roi the region of interest cv::Mat::Mat (const CvMat *m, bool copyData=false) Mat const CvMat * m bool copyData false cv::Mat::Mat (const IplImage *img, bool copyData=false) Mat const IplImage * img bool copyData false typename _Tp cv::Mat::Mat (const vector< _Tp > &vec, bool copyData=false) Mat const vector< _Tp > & vec bool copyData false cv::Mat::Mat (const MatExpr_Base &expr) Mat const MatExpr_Base & expr cv::Mat::~Mat () ~Mat Mat & Mat& cv::Mat::operator= (const Mat &m) operator= operator= const Mat & m Mat & Mat& cv::Mat::operator= (const MatExpr_Base &expr) operator= operator= const MatExpr_Base & expr cv::Mat::operator MatExpr_< Mat, Mat > () const operator MatExpr_< Mat, Mat > Mat Mat cv::Mat::row (int y) const row row int y Mat Mat cv::Mat::col (int x) const col col int x Mat Mat cv::Mat::rowRange (int startrow, int endrow) const rowRange int startrow int endrow Mat Mat cv::Mat::rowRange (const Range &r) const rowRange const Range & r Mat Mat cv::Mat::colRange (int startcol, int endcol) const colRange int startcol int endcol Mat Mat cv::Mat::colRange (const Range &r) const colRange const Range & r Mat Mat cv::Mat::diag (int d=0) const diag diag int d 0 Mat Mat cv::Mat::clone () const clone clone Create a deep copy of the matrix. This method uses Mat.copyTo internal so the latter is a better option if you already have a matrix to clone the content into. new matrix with a copy of the data void void cv::Mat::copyTo (Mat &m) const copyTo Mat & m Copy the data into another matrix. m matrix receiving a copy of the data void void cv::Mat::copyTo (Mat &m, const Mat &mask) const copyTo Mat & m const Mat & mask void void cv::Mat::convertTo (Mat &m, int rtype, double alpha=1, double beta=0) const convertTo Mat & m int rtype double alpha 1 double beta 0 Convert to another datatype with optional value scaling. This method first multiplies the values by alpha (scale), adds beta (shift) and then converts to the new MagicType rtype. cvConvertScale m matrix to which the resulting content will be written rtype MagicType of the converted matrix alpha value scaling factor (applied first) beta shift factor (applied after scaling but before conversion) void void cv::Mat::assignTo (Mat &m, int type=-1) const assignTo Mat & m int type -1 Mat & Mat& cv::Mat::operator= (const Scalar &s) operator= const Scalar & s Mat & Mat& cv::Mat::setTo (const Scalar &s, const Mat &mask=Mat()) setTo const Scalar & s const Mat & mask Mat() Mat Mat cv::Mat::reshape (int _cn, int _rows=0) const reshape int _cn int _rows 0 MatExpr_< MatExpr_Op2_< Mat, double, Mat, MatOp_T_< Mat > >, Mat > MatExpr_<MatExpr_Op2_<Mat, double, Mat, MatOp_T_<Mat> >, Mat> cv::Mat::t () const t t MatExpr_< MatExpr_Op2_< Mat, int, Mat, MatOp_Inv_< Mat > >, Mat > MatExpr_<MatExpr_Op2_<Mat, int, Mat, MatOp_Inv_<Mat> >, Mat> cv::Mat::inv (int method=DECOMP_LU) const inv inv int method DECOMP_LU MatExpr_< MatExpr_Op4_< Mat, Mat, double, char, Mat, MatOp_MulDiv_< Mat > >, Mat > MatExpr_<MatExpr_Op4_<Mat, Mat, double, char, Mat, MatOp_MulDiv_<Mat> >, Mat> cv::Mat::mul (const Mat &m, double scale=1) const mul const Mat & m double scale 1 MatExpr_< MatExpr_Op4_< Mat, Mat, double, char, Mat, MatOp_MulDiv_< Mat > >, Mat > MatExpr_<MatExpr_Op4_<Mat, Mat, double, char, Mat, MatOp_MulDiv_<Mat> >, Mat> cv::Mat::mul (const MatExpr_< MatExpr_Op2_< Mat, double, Mat, MatOp_Scale_< Mat > >, Mat > &m, double scale=1) const mul const MatExpr_< MatExpr_Op2_< Mat, double, Mat, MatOp_Scale_< Mat > >, Mat > & m double scale 1 MatExpr_< MatExpr_Op4_< Mat, Mat, double, char, Mat, MatOp_MulDiv_< Mat > >, Mat > MatExpr_<MatExpr_Op4_<Mat, Mat, double, char, Mat, MatOp_MulDiv_<Mat> >, Mat> cv::Mat::mul (const MatExpr_< MatExpr_Op2_< Mat, double, Mat, MatOp_DivRS_< Mat > >, Mat > &m, double scale=1) const mul const MatExpr_< MatExpr_Op2_< Mat, double, Mat, MatOp_DivRS_< Mat > >, Mat > & m double scale 1 Mat Mat cv::Mat::cross (const Mat &m) const cross const Mat & m double double cv::Mat::dot (const Mat &m) const dot const Mat & m void void cv::Mat::create (int _rows, int _cols, int _type) create int _rows int _cols int _type Allocate new matrix data unless the matrix already has the specified size and type. The previous data will be unreferenced if needed. _rows number of rows in the new matrix data _cols number of columns in the new matrix data _type MagicType of the new data void void cv::Mat::create (Size _size, int _type) create Size _size int _type void void cv::Mat::addref () addref void void cv::Mat::release () release void void cv::Mat::locateROI (Size &wholeSize, Point &ofs) const locateROI Size & wholeSize Point & ofs Mat & Mat& cv::Mat::adjustROI (int dtop, int dbottom, int dleft, int dright) adjustROI adjustROI int dtop int dbottom int dleft int dright Changes the Region Of Interest (ROI) by moving/resizing the current ROI. All adjustments are limited to the bounds of the original matrix to ensure that the ROI does not go out of the matrix data. dtop delta to move top side dbottom delta to move bottom side dleft delta to move left side dright delta to move right side reference to the current matrix Mat Mat cv::Mat::operator() (Range rowRange, Range colRange) const operator() Range rowRange Range colRange Extract a rectangular sub-matrix from row and column range information. rowRange the row range that we want to extract colRange the column range that we want to extract new Mat header sharing the data of the original matrix Mat Mat cv::Mat::operator() (const Rect &roi) const operator() operator() const Rect & roi Extract a rectangular sub-matrix from a rectangle ROI. roi the region of interest in the current matrix new Mat header sharing the data of the original matrix cv::Mat::operator CvMat () const operator CvMat Convert header to legacy CvMat format without copying the data. a new CvMat header using the same format and data. cv::Mat::operator IplImage () const operator IplImage bool bool cv::Mat::isContinuous () const isContinuous size_t size_t cv::Mat::elemSize () const elemSize elemSize Size in bytes of an element. For example: a matrix with type CV_32FC3 would have a channel size of 3 and thus an element size of 3 floats = 12 bytes. size_t size_t cv::Mat::elemSize1 () const elemSize1 elemSize1 Size in bytes of a single value. For example: a matrix with type CV_32FC3 would have an value size of 1 float = 4 bytes. int int cv::Mat::type () const type type Get the MagicType of the data. This method is similar to CV_MAT_TYPE(cvmat->type).MagicType of the data int int cv::Mat::depth () const depth depth Returns the DepthType of the current matrix. The DepthType is a single number representing the kind of value stored. This method is similar to CV_MAT_DEPTH(cvmat->type). int int cv::Mat::channels () const channels channels Get the number of channels (number of values in each element). Similar to CV_MAT_CN(cvmat->type). number of channels size_t size_t cv::Mat::step1 () const step1 step1 Get the number of elements to move to next row. This number is the number of bytes to next row (step) divided by the number of bytes forming a single element (elemSize). number of elements to move to next row Size Size cv::Mat::size () const size Get the Size of the matrix. The width parameter represents the number of columns and the height parameter the number of rows. size of the matrix bool bool cv::Mat::empty () const empty uchar * uchar* cv::Mat::ptr (int y=0) ptr int y 0 const uchar * const uchar* cv::Mat::ptr (int y=0) const ptr int y 0 typename _Tp _Tp * _Tp* cv::Mat::ptr (int y=0) ptr int y 0 typename _Tp const _Tp * const _Tp* cv::Mat::ptr (int y=0) const ptr int y 0 typename _Tp _Tp & _Tp& cv::Mat::at (int y, int x) at int y int x typename _Tp _Tp & _Tp& cv::Mat::at (Point pt) at Point pt typename _Tp const _Tp & const _Tp& cv::Mat::at (int y, int x) const at int y int x typename _Tp const _Tp & const _Tp& cv::Mat::at (Point pt) const at Point pt typename _Tp MatIterator_< _Tp > MatIterator_<_Tp> cv::Mat::begin () begin begin typename _Tp MatIterator_< _Tp > MatIterator_<_Tp> cv::Mat::end () end end typename _Tp MatConstIterator_< _Tp > MatConstIterator_<_Tp> cv::Mat::begin () const begin begin typename _Tp MatConstIterator_< _Tp > MatConstIterator_<_Tp> cv::Mat::end () const end end Mat static Mat cv::Mat::diag (const Mat &d) diag const Mat & d MatExpr_Initializer static MatExpr_Initializer cv::Mat::zeros (int rows, int cols, int type) zeros int rows int cols int type MatExpr_Initializer static MatExpr_Initializer cv::Mat::zeros (Size size, int type) zeros Size size int type MatExpr_Initializer static MatExpr_Initializer cv::Mat::ones (int rows, int cols, int type) ones int rows int cols int type MatExpr_Initializer static MatExpr_Initializer cv::Mat::ones (Size size, int type) ones Size size int type MatExpr_Initializer static MatExpr_Initializer cv::Mat::eye (int rows, int cols, int type) eye int rows int cols int type MatExpr_Initializer static MatExpr_Initializer cv::Mat::eye (Size size, int type) eye Size size int type cv::Mataddref cv::MatadjustROI cv::MatassignTo cv::Matat cv::Matat cv::Matat cv::Matat cv::MatAUTO_STEP cv::Matbegin cv::Matbegin cv::Matchannels cv::Matclone cv::Matcol cv::MatcolRange cv::MatcolRange cv::Matcols cv::MatCONTINUOUS_FLAG cv::MatconvertTo cv::MatcopyTo cv::MatcopyTo cv::Matcreate cv::Matcreate cv::Matcross cv::Matdata cv::Matdataend cv::Matdatastart cv::Matdepth cv::Matdiag cv::Matdiag cv::Matdot cv::MatelemSize cv::MatelemSize1 cv::Matempty cv::Matend cv::Matend cv::Mateye cv::Mateye cv::Matflags cv::Matinv cv::MatisContinuous cv::MatlocateROI cv::MatMAGIC_VAL cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::MatMat cv::Matmul cv::Matmul cv::Matmul cv::Matones cv::Matones cv::Matoperator CvMat cv::Matoperator IplImage cv::Matoperator MatExpr_< Mat, Mat > cv::Matoperator() cv::Matoperator() cv::Matoperator= cv::Matoperator= cv::Matoperator= cv::Matptr cv::Matptr cv::Matptr cv::Matptr cv::Matrefcount cv::Matrelease cv::Matreshape cv::Matrow cv::MatrowRange cv::MatrowRange cv::Matrows cv::MatsetTo cv::Matsize cv::Matstep cv::Matstep1 cv::Matt cv::Mattype cv::Matzeros cv::Matzeros cv::Mat~Mat