Image processing 1 bit images
<p>I am trying to understand the basics for image processing an image of a corridor. I have have used PIL to convert find the edges in an image, then I have converted it to a 1 bit image. I know what I want to be able to extract - the longest horizontal and diagonal lines that can be found in the image. Any ideas?</p>

<pre><code>from PIL import *
import Image, ImageFilter
im = im.open("c:\Python26\Lib\site-packages\PIL\corridor.jpg")
imageInfo=list(im.getdata())
im.putdata(imageInfo)
print pic.size
for i in imageInfo2[180:220]:
 if i==0:
    print "This is a BLACK pixel"
       elif i==255:
          print "This is a WHITE pixel"
       else:
         print "ERROR"
</code></pre>
