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.