def _points_table():
 for i in range(256):
  for j in itertools.repeat(i, 256):
   (yield j)

def _points_table ( ) : for i in range ( 256 ) : for j in itertools . repeat ( i , 256 ) : ( yield j )
iterable to map a 16 bit grayscale image to 8 bits .