class_docstr: Base class for instance masks.
class_docstr_tok: ["Base","class","for","instance","masks","."]
docstr: Rotate the masks.
  
  Args:
      out_shape (tuple[int]): Shape for output mask, format (h, w).
      angle (int | float): Rotation angle in degrees. Positive values
          mean counter-clockwise rotation.
      center (tuple[float], optional): Center point (w, h) of the
          rotation in source image. If not specified, the center of
          the image will be used.
      scale (int | float): Isotropic scale factor.
      fill_val (int | float): Border value. Default 0 for masks.
  
  Returns:
      Rotated masks.
docstr_tok: ["Rotate","the","masks",".","Args",":","out_shape","(","tuple","[","int","]",")",":","Shape","for","output","mask",",","format","(","h",",","w",")",".","angle","(","int","|","float",")",":","Rotation","angle","in","degrees",".","Positive","values","mean","counter-clockwise","rotation",".","center","(","tuple","[","float","]",",","optional",")",":","Center","point","(","w",",","h",")","of","the","rotation","in","source","image",".","If","not","specified",",","the","center","of","the","image","will","be","used",".","scale","(","int","|","float",")",":","Isotropic","scale","factor",".","fill_val","(","int","|","float",")",":","Border","value",".","Default","0","for","masks",".","Returns",":","Rotated","masks","."]
code: def rotate(
      self, out_shape, angle, center=None, scale=1.0, fill_val=0
  ):
      """Rotate the masks.
  
      Args:
          out_shape (tuple[int]): Shape for output mask, format (h, w).
          angle (int | float): Rotation angle in degrees. Positive values
              mean counter-clockwise rotation.
          center (tuple[float], optional): Center point (w, h) of the
              rotation in source image. If not specified, the center of
              the image will be used.
          scale (int | float): Isotropic scale factor.
          fill_val (int | float): Border value. Default 0 for masks.
  
      Returns:
          Rotated masks.
      """
      pass
  
imports: from abc import ABCMeta, abstractmethod
  import cv2
  import mmcv
  import numpy
  import pycocotools.mask
  import torch
  from mmcv.ops.roi_align import roi_align
label_desc: Use image node_id 13 for calling the BaseInstanceMasks obj's underlying member method code with example usage: obj.rotate(out_shape, angle, center, scale, fill_val) without return types