'Args:
range(list or tuple): hue range
rgb (bool): whether input is RGB or BGR.'

def __init__(self, range=(0, 180), rgb=None):

    super(Hue, self).__init__()
    if (rgb is None):
        logger.warn('Hue()    now    assumes    rgb=False,    but    will    by    default    use    rgb=True    in    the    future!')
        rgb = False
    rgb = bool(rgb)
    self._init(locals())
