| 1 | initial version |
In fact, img is a numpy array containing (r,g,b) values. In Sage, you can plot it with
sage: matrix_plot(img, origin='lower')
Colors may be inverted (is 1.0 white or black?), you can try
sage: matrix_plot(1.0-img, origin='lower')
to flip it around.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.