def rgb_norm(val):
    """Pixel normalization

    Function equivalent to keras.application.inception_v3.preprocess_input

    Arguments:
        val {int} -- Pixel value (0:255 range)

    Returns:
        int -- Pixel normalized value (-1:1 range)
    """
    return 2/255*(val-255)+1