Search code examples
imagememoryboost-gil

Boost::GIL read images from memory


I need to be able to load images (jpeg, png etc.) from the memory in Boost::Gil framework. Is there a way to do that?

Thanky for your answers!


Solution

  • The according to the documentation the read/convert functions only accept filenames as input, not general streams or pointers, so this seems to not be possible.

    Grep on the header files seems to agree too:

    /usr/include/boost/gil > grep -nri stream *
    /usr/include/boost/gil >
    

    and searches for void * or char * don't return any relevant results either.