Konvertieren Sie eine Bytearry in ein OpenCV-Image in C ++
Ich habe ein Byte-Array, das eine JPG-Datei darstellt, die ich direkt in ein OpenCV Mat-Objekt konvertieren möchte.
Ich habe so etwas wie
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;