problem with visualizing .pgm files written by bob
Created by: ivana7c
The format of the .pgm files written by bob are not supported by some applications like GNOME image viewer or Gimp etc. However, it is possible to correctly read them back using bob. The difference between an .pgm image written with bob and other .pgm image is in the header (P7 for bob, P5 for other image).
Here is how to reproduce the error:
import bob import numpy img=numpy.random.randint(0,255,size=(100,100)).astype(numpy.uint8) bob.io.save(img, 'test.pgm')