def get_gamma_function(gamma):
    """

    :param gamma: desired factor gamma
    :return: Returns the lambda function of the gamma adjust operation
    """
    return lambda x: pow(x / 255, gamma) * 255