def getIfromRGB(rgb):
    """
    Converts rgb tuple to integer
    :param rgb: the rgb tuple n 255 scale
    :return: the integer
    """
    red = rgb[0]
    green = rgb[1]
    blue = rgb[2]
    RGBint = (red << 16) + (green << 8) + blue
    return RGBint