+def dumpNumpyImage(output, pixels):
+ height, width, channels = pixels.shape
+ for y in range(height):
+ output.write(' ')
+ for x in range(width):
+ for c in range(channels):
+ output.write('%0.9g,' % pixels[y, x, c])
+ output.write(' ')
+ output.write('\n')
+
+