Simple single-header-only graymap (PGM/PBM) file loader. Graymaps are a great format for quick data visualization due to their simplicity (no compression) and relatively compact size. A no-frills single channel image format.


Usage

  GraymapImage image;

  if (!image.LoadImage("test_image.pgm")) {
    std::cout << "Failed to load image!" << std::endl;
  }



Downloads

  Graymap loader (Source code)