std::vector<uchar> buf;
cv::imencode("." + encoding, cv_img, buf);
datum->set_data(std::string(reinterpret_cast<char*>(&buf[0]),buf.size()));
I have searched the source code about the set_data function.It is as following,
Datum::set_data(const ::std::string& value)
My data is .raw file and the data type is short int.
How can I put short int type data into the datum with the function Datum::set_data(const ::std::string& value)?
What does the parameter 'value' mean in the function?