I've an old code to load an image from a Stream to a TCvMat.data. Stream buffer is a TBytes and could be assigned to mat.data, but after pulling last changes, mat.data is now a TcvMatDataUnion and doesn't accepts TBytes. How can i pass stream data buffer to a Mat now?
I've an old code to load an image from a Stream to a TCvMat.data. Stream buffer is a TBytes and could be assigned to mat.data, but after pulling last changes, mat.data is now a TcvMatDataUnion and doesn't accepts TBytes. How can i pass stream data buffer to a Mat now?