class_docstr: Randomly change color hue.
      
class_docstr_tok: ["Randomly","change","color","hue","."]
code: def _augment(self, img, hue):
      m = cv2.COLOR_BGR2HSV if not self.rgb else cv2.COLOR_RGB2HSV
      hsv = cv2.cvtColor(img, m)
      # https://docs.opencv.org/3.2.0/de/d25/imgproc_color_conversions.html#color_convert_rgb_hsv
      if hsv.dtype.itemsize == 1:
          # OpenCV uses 0-179 for 8-bit images
          hsv[..., 0] = (hsv[..., 0] + hue) % 180
      else:
          # OpenCV uses 0-360 for floating point images
          hsv[..., 0] = (hsv[..., 0] + 2 * hue) % 360
      m = cv2.COLOR_HSV2BGR if not self.rgb else cv2.COLOR_HSV2RGB
      img = cv2.cvtColor(hsv, m)
      return img
  
imports: import numpy
  import cv2
  from ...utils.develop import log_deprecated
  from .base import PhotometricAugmentor
label_desc: Use image node_id 3 for calling the Hue obj's underlying member method code with example usage: obj._augment(img, hue) and returns: img