On Saturday, 31 October 2009 23:43:45 UTC+8, Hans Georg Schaathun wrote:
Does anyone know how to save two-tone images represented as
numpy arrays? I handle grayscale images by converting to
PIL Image objects (mode=L) and then use the PIL save method,
but I cannot make this work with mode=1.
Does anyone know how to save two-tone images represented as
numpy arrays? I handle grayscale images by converting to
PIL Image objects (mode=L) and then use the PIL save method,
but I cannot make this work with mode=1.
I have tried both boolean arrays and uint8 arrays (mod 2).
In both cases I