PGM 2 PNG Convert a .pgm file to a .png file using OpenCV Installation Requires OpenCV, C++14 compatible compiler, ... Running mkdir bin cd bin cmake .. make ./pgm2png input.pgm output.png