Import RGB value of each pixel in an image to 1-D array
<p>How to import RGB value of each pixel in an image to 1-D array?</p>

<p>I am using following thing:</p>

<pre><code>from PIL import Image
im = Image.open("bride.jpg")
pix = im.load()
print pix[x,y]
</code></pre>

<p>this imports it into 2-D array which is not iterable. 
I want this same thing but in 1-D array. </p>
