def iter_rows(pil_image):
    iterator = izip(*(iter(pil_image.getdata()),) * pil_image.width)
    for row in iterator:
        yield row
Yield tuple of pixels for each row in the image.
dataset/ETHPy150Open Robpol86/colorclass/tests/screenshot.py/iter_rows