OpenCV453
公開変数類 | 全メンバ一覧

#include <types_c.h>

公開変数類

int type
 
int step
 
int * refcount
 
int hdr_refcount
 
union {
   uchar *   ptr
 
   short *   s
 
   int *   i
 
   float *   fl
 
   double *   db
 
data
 
int rows
 
int cols
 

詳解

Matrix elements are stored row by row. Element (i, j) (i - 0-based row index, j - 0-based column index) of a matrix can be retrieved or modified using CV_MAT_ELEM macro:

uchar pixval = CV_MAT_ELEM(grayimg, uchar, i, j)
CV_MAT_ELEM(cameraMatrix, float, 0, 2) = image.width*0.5f;

To access multiple-channel matrices, you can use CV_MAT_ELEM(matrix, type, i, j*nchannels + channel_idx).

非推奨:
CvMat is now obsolete; consider using Mat instead.

この構造体詳解は次のファイルから抽出されました: