Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

Load a Mat from stream #99

Closed exilon closed 6 years ago

exilon commented 6 years ago

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?

exilon commented 6 years ago

Sorry, solution is: mat.data.ptr := PByte(Buffer)