def gamma_corr(clip, gamma):
 def fl(im):
  corrected = (255 * (((1.0 * im) / 255) ** gamma))
  return corrected.astype('uint8')
 return clip.fl_image(fl)

def gamma_corr ( clip , gamma ) : def fl ( im ) : corrected = ( 255 * ( ( ( 1.0 * im ) / 255 ) ** gamma ) ) return corrected . astype ( 'uint8' ) return clip . fl_image ( fl )
gamma-correction of a video clip .