誰かがこの 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# は話せます。