Multiply each pixel in an image by a factor
If the type is numpy.ndarray just img = np.uint8(img*factor)
I have an image that is created by using a bayer filter and the colors are slightly off.  I need to multiply RG and B of each pixel by a certain factor ( a different factor for R, G and B each) to get the correct color.  I am using the python imaging library and of course writing in python.  is there any way to do this efficiently?
Thanks!