Header only Netbpm using STL, C++11.
NetBPM is a simple image format which supports both human readable ASCII and binary formats. For more information see https://en.wikipedia.org/wiki/Netpbm_format
#include "netbpm.hpp"
and you're off!
netbpm is simply a class. To use it
To read from a file (either binary or ascii)...
netbpm data;
std::ifstream file("image.ppm");
file >> data;
Alternatively you can construct a netbpm from a string.
netbpm data(ppmSyntaxAsString);
Or construct from raw byte data.
To write to a file...
netbpm data;
std::ofstream file("image.ppm");
file << data; // for binary
or file << data.ascii(); // for ascii
Support for PAM. Iterators for pixel operations.