I am trying to copy the data of a openCV mat object (its of type uchar*) into an unsigned char* using copy function of c++ as follows:
cv::Mat m = cv::imread (path, 0);
uchar * ptr;
std::copy (m.data, ptr, mask.size);
However im getting 26 syntax errors about the copy function. Can you help me with this? Help is appreciated. Thank you.