我是一名有用的助手,可以为您翻译文本。
我有一个表示.jpg文件的字节数组,我想直接将其转换为OpenCV Mat对象。
我有类似以下的内容:
我有一个表示.jpg文件的字节数组,我想直接将其转换为OpenCV Mat对象。
我有类似以下的内容:
byte* data; // Represents a JPG that I don't want to disk and then read.
// What goes here to end up with the following line?
cv::Mat* image_representing_the_data;