def METHOD_NAME(image, scales):
  """scale image, often used to normalize image"""
  B, G, R = cv2.split(image)
  B = B * scales[0]
  G = G * scales[1]
  R = R * scales[2]
  return cv2.merge([B, G, R])