School of Computing National University of Singapore CS ...

Image.fromarray converts an array to a PIL Image. Numpy.zeros creates an array of 0’s. Numpy.trace, Numpy.sum, Numpy.sqrt compute the trace, sum and square-root. ................
................