def brightness(x, gamma=1, gain=1, is_random=False):
 if is_random:
  gamma = np.random.uniform((1 - gamma), (1 + gamma))
 x = exposure.adjust_gamma(x, gamma, gain)
 return x

def brightness ( x , gamma = 1 , gain = 1 , is_random = False ) : if is_random : gamma = np . random . uniform ( ( 1 - gamma ) , ( 1 + gamma ) ) x = exposure . adjust_gamma ( x , gamma , gain ) return x
change the brightness of a single image .