Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要能够从 Boost::Gil 框架的内存中加载图像(jpeg、png 等)。有没有办法做到这一点?
感谢您的回答!
根据文档,读取/转换函数只接受文件名作为输入,而不接受一般的流或指针,所以这似乎是不可能的。
头文件上的 Grep 似乎也同意:
/usr/include/boost/gil > grep -nri stream * /usr/include/boost/gil >
并搜索void *或char *不返回任何相关结果。
void *
char *
在此处查看解决方案:
http://boost.2283326.n4.nabble.com/gil-io-new-review-Reading-images-from-in-memory-sources-td3073639.html
干杯