class_docstr: This class represents masks in the form of bitmaps.
  
  Args:
      masks (ndarray): ndarray of masks in shape (N, H, W), where N is
          the number of objects.
      height (int): height of masks
      width (int): width of masks
class_docstr_tok: ["This","class","represents","masks","in","the","form","of","bitmaps",".","Args",":","masks","(","ndarray",")",":","ndarray","of","masks","in","shape","(","N",",","H",",","W",")",",","where","N","is","the","number","of","objects",".","height","(","int",")",":","height","of","masks","width","(","int",")",":","width","of","masks"]
docstr: Rotate the BitmapMasks.
  
  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:
      BitmapMasks: Rotated BitmapMasks.
docstr_tok: ["Rotate","the","BitmapMasks",".","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",":","BitmapMasks",":","Rotated","BitmapMasks","."]
code: def rotate(
      self, out_shape, angle, center=None, scale=1.0, fill_val=0
  ):
      """Rotate the BitmapMasks.
  
      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:
          BitmapMasks: Rotated BitmapMasks.
      """
      if len(self.masks) == 0:
          rotated_masks = np.empty(
              (0, *out_shape), dtype=self.masks.dtype
          )
      else:
          rotated_masks = mmcv.imrotate(
              self.masks.transpose((1, 2, 0)),
              angle,
              center=center,
              scale=scale,
              border_value=fill_val,
          )
          if rotated_masks.ndim == 2:
              # case when only one mask, (h, w)
              rotated_masks = rotated_masks[:, :, None]  # (h, w, 1)
          rotated_masks = rotated_masks.transpose((2, 0, 1)).astype(
              self.masks.dtype
          )
      return BitmapMasks(rotated_masks, *out_shape)
  
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 15 for calling the BitmapMasks obj's underlying member method code with example usage: obj.rotate(out_shape, angle, center, scale, fill_val) and returns: BitmapMasks