You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. How does a program read the cvMat object, in particular, what is the
order of the pixel structure?
A matrix in cvMat contents several digits, and single channel means each member in the
matrix contents only one digit. But when we use cvMat to express a multiple-colors-picture, the matrix can be known as a triplets, which means each member in the matrix contents three digits, R, G and B.
For example, when we create a 2-D matrix, we can use this prototype:
cvMat* cvCreateMat ( int rows, int cols, int type );