class_docstr: Random rotate the image w.r.t a random center
docstr: Args:
      max_deg (float): max abs value of the rotation angle (in degree).
      center_range (tuple): (min, max) range of the random rotation center.
      interp: cv2 interpolation method
      border: cv2 border method
      step_deg (float): if not None, the stepping of the rotation
          angle. The rotation angle will be a multiple of step_deg. This
          option requires ``max_deg==180`` and step_deg has to be a divisor of 180)
      border_value: cv2 border value for border=cv2.BORDER_CONSTANT
docstr_tok: ["Args",":","max_deg","(","float",")",":","max","abs","value","of","the","rotation","angle","(","in","degree",")",".","center_range","(","tuple",")",":","(","min",",","max",")","range","of","the","random","rotation","center",".","interp",":","cv2","interpolation","method","border",":","cv2","border","method","step_deg","(","float",")",":","if","not","None",",","the","stepping","of","the","rotation","angle",".","The","rotation","angle","will","be","a","multiple","of","step_deg",".","This","option","requires","``","max_deg==180","``","and","step_deg","has","to","be","a","divisor","of","180",")","border_value",":","cv2","border","value","for","border=cv2.BORDER_CONSTANT"]
code: def __init__(
      self,
      max_deg,
      center_range=(0, 1),
      interp=cv2.INTER_LINEAR,
      border=cv2.BORDER_REPLICATE,
      step_deg=None,
      border_value=0,
  ):
      """
      Args:
          max_deg (float): max abs value of the rotation angle (in degree).
          center_range (tuple): (min, max) range of the random rotation center.
          interp: cv2 interpolation method
          border: cv2 border method
          step_deg (float): if not None, the stepping of the rotation
              angle. The rotation angle will be a multiple of step_deg. This
              option requires ``max_deg==180`` and step_deg has to be a divisor of 180)
          border_value: cv2 border value for border=cv2.BORDER_CONSTANT
      """
      assert step_deg is None or (
          max_deg == 180 and max_deg % step_deg == 0
      )
      super(Rotation, self).__init__()
      self._init(locals())
  
imports: import math
  import numpy
  import cv2
  from .base import ImageAugmentor
  from .transform import WarpAffineTransform, CropTransform, TransformList
label_desc: Use image node_id 1 to create a new Rotation object from inherited base classes: ImageAugmentor with example: obj = Rotation(max_deg, center_range, interp, border, step_deg, border_value)