I want to convert an image first into 2-D, then into 1-D array. I used reshape in order to do that. I converted image1.png which has 64x64x3 pixels into an array which has the size 1x12288. However, when I try to copy and display the first 100 values I get an empty array. Can you help me please?
from PIL import Image
from scipy.misc import imread
import numpy as np
img1 = imread('image1.png')
img1 = np.reshape(img1,(128,96))
y = list(np.reshape(img1,(1,12288)))
z = y[1:101]
print(z)

editunder your question and post the actual image and the actual code.