Tengo una matriz de bytes que representa un archivo .jpg que quiero convertir directamente en un objeto Mat de OpenCV.Convertir un byte arry en una imagen OpenCV en C++
que tienen algo así como
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;
Por lo que significa de datos es el byte-corriente comprimida de un archivo JPG ¿archivo de imagen? –
¿Has probado cv :: Mat image_representing_the_data (dataSize, 1, CV_8U, data); (y luego remodelar la imagen)? – Sassa