Boost asio: Send OpenCV IplImage from Ubuntu-Server to Win7-Client

浪尽此生 提交于 2019-12-06 05:54:27

You should also create a new image on the destination, with the values for the image header parameters you copied over then copy the image data into the new image (ideally a row at a time)

There is no guarrantee that openCV lays out the image data in the same way, it may have different padding or different rowstrides

You might try a library like Boost.Serialization rather than rolling your own version to see if it makes a difference:

7) Data Portability - Streams of bytes created on one platform should be readable on any other.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!