2015-12-19 44 views

回答

1
uchar* cv::Mat::data 

pointer to the data 

而且不要忘記,Mat實際行大小可能從寬*的sizeof(元素)不同:

cv::Mat::step is needed because the matrix can be a part of another matrix 
or because there can some padding space in the end of each row for a proper 
alignment.