title: Python Image of images
body: <p>I have a folder with 230400 images, each representing one pixel in a 480 x 480 image.
  How can I use Python to make a single image out of each image?</p>
  
  <p>I tried to creat a npy-array but I believe it resulted in a 3d array instead of a 2d array:</p>
  
  <pre><code>import cv2
  import glob
  import numpy as np
  
  data = []
  files = glob.glob("./data/*.PNG")
  for myFile in files:
      print(myFile)
      image = cv2.imread(myFile)
      data.append(image)
  
  print('shape:', np.array(data).shape)
  
  np.save('data',data)
  </code></pre>
  
  <blockquote>
    <p>Output: shape: (230400, 100, 100, 3)</p>
  </blockquote>
  
  <p>How do I create a 2d array of images? And how do I convert it to an image?</p>