如果有人请告诉我这行 C++ 代码的含义是什么,我会很高兴,它在做什么?
temp = ((uchar*) matimg.data + i)[j];
在这段代码中
int rows =(int) height;
int cols =(int) width;
Mat matimg(img);
vector<vector<double> > vec1(rows, vector<double>(cols));
int k =1;
for (int i=0; i < rows; i++) {
for (int j =0; j < cols; j++){
unsigned char temp;
temp = ((uchar*) matimg.data + i)[j];
vec1[i][j] = (double) temp;
}
}
PS我不会说C++,我会说C#