def rgb_to_cielab_i(I): I2 = map(lambda i: i[0:3],I.getdata()) # rgb tuples return map(lambda i: ct.rgb_to_cielab(i[0],i[1],i[2]),I2)