class_docstr: Adjust brightness by scaling by a random factor.
class_docstr_tok: ["Adjust","brightness","by","scaling","by","a","random","factor","."]
code: def _augment(self, img, v):
      old_dtype = img.dtype
      img = img.astype("float32")
      img *= v
      if self.clip or old_dtype == np.uint8:
          img = np.clip(img, 0, 255)
      return img.astype(old_dtype)
  
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 BrightnessScale obj's underlying member method code with example usage: obj._augment(img, v) and returns: img