First time here? Check out the FAQ!
answered 12 years ago
In fact, img is a numpy array containing (r,g,b) values. In Sage, you can plot it with
img
(r,g,b)
sage: matrix_plot(img, origin='lower')
Colors may be inverted (is 1.0 white or black?), you can try
1.0
sage: matrix_plot(1.0-img, origin='lower')
to flip it around.