1>>> a = np.array([[1,2], [3,4]])
2>>> a.flatten()
3array([1, 2, 3, 4])
4>>> a.flatten('F')
5array([1, 3, 2, 4])
6
1 x_data = np.array( [np.array(cv2.imread(imagePath[i])) for i in range(len(imagePath))] )
2
3 pixels = x_data.flatten().reshape(1000, 12288)
4 print pixels.shape