class_docstr: Object representing a segmentation map associated with an image.
  
  Attributes
  ----------
  DEFAULT_SEGMENT_COLORS : list of tuple of int
      Standard RGB colors to use during drawing, ordered by class index.
  
  Parameters
  ----------
  arr : (H,W) ndarray or (H,W,C) ndarray
      Array representing the segmentation map(s). May have dtypes bool,
      int or uint.
  
  shape : tuple of int
      Shape of the image on which the segmentation map(s) is/are placed.
      **Not** the shape of the segmentation map(s) array, unless it is
      identical to the image shape (note the likely difference between the
      arrays in the number of channels).
      This is expected to be ``(H, W)`` or ``(H, W, C)`` with ``C`` usually
      being ``3``.
      If there is no corresponding image, use ``(H_arr, W_arr)`` instead,
      where ``H_arr`` is the height of the segmentation map(s) array
      (analogous ``W_arr``).
  
  nb_classes : None or int, optional
      Deprecated.
class_docstr_tok: ["Object","representing","a","segmentation","map","associated","with","an","image",".","Attributes","--","--","--","--","--","DEFAULT_SEGMENT_COLORS",":","list","of","tuple","of","int","Standard","RGB","colors","to","use","during","drawing",",","ordered","by","class","index",".","Parameters","--","--","--","--","--","arr",":","(","H",",","W",")","ndarray","or","(","H",",","W",",","C",")","ndarray","Array","representing","the","segmentation","map","(","s",")",".","May","have","dtypes","bool",",","int","or","uint",".","shape",":","tuple","of","int","Shape","of","the","image","on","which","the","segmentation","map","(","s",")","is\/are","placed",".","*","*","Not","*","*","the","shape","of","the","segmentation","map","(","s",")","array",",","unless","it","is","identical","to","the","image","shape","(","note","the","likely","difference","between","the","arrays","in","the","number","of","channels",")",".","This","is","expected","to","be","``","(","H",",","W",")","``","or","``","(","H",",","W",",","C",")","``","with","``","C","``","usually","being","``","3","``",".","If","there","is","no","corresponding","image",",","use","``","(","H_arr",",","W_arr",")","``","instead",",","where","``","H_arr","``","is","the","height","of","the","segmentation","map","(","s",")","array","(","analogous","``","W_arr","``",")",".","nb_classes",":","None","or","int",",","optional","Deprecated","."]
docstr: Resize the seg.map(s) array given a target size and interpolation.
  
  Parameters
  ----------
  sizes : float or iterable of int or iterable of float
      New size of the array in ``(height, width)``.
      See :func:`~imgaug.imgaug.imresize_single_image` for details.
  
  interpolation : None or str or int, optional
      The interpolation to use during resize.
      Nearest neighbour interpolation (``"nearest"``) is almost always
      the best choice.
      See :func:`~imgaug.imgaug.imresize_single_image` for details.
  
  Returns
  -------
  imgaug.augmentables.segmaps.SegmentationMapsOnImage
      Resized segmentation map object.
docstr_tok: ["Resize","the","seg.map","(","s",")","array","given","a","target","size","and","interpolation",".","Parameters","--","--","--","--","--","sizes",":","float","or","iterable","of","int","or","iterable","of","float","New","size","of","the","array","in","``","(","height",",","width",")","``",".","See",":","func",":","`","~imgaug.imgaug.imresize_single_image","`","for","details",".","interpolation",":","None","or","str","or","int",",","optional","The","interpolation","to","use","during","resize",".","Nearest","neighbour","interpolation","(","``","``","nearest","''","``",")","is","almost","always","the","best","choice",".","See",":","func",":","`","~imgaug.imgaug.imresize_single_image","`","for","details",".","Returns","--","--","--","-","imgaug.augmentables.segmaps.SegmentationMapsOnImage","Resized","segmentation","map","object","."]
code: def resize(self, sizes, interpolation="nearest"):
      """Resize the seg.map(s) array given a target size and interpolation.
  
      Parameters
      ----------
      sizes : float or iterable of int or iterable of float
          New size of the array in ``(height, width)``.
          See :func:`~imgaug.imgaug.imresize_single_image` for details.
  
      interpolation : None or str or int, optional
          The interpolation to use during resize.
          Nearest neighbour interpolation (``"nearest"``) is almost always
          the best choice.
          See :func:`~imgaug.imgaug.imresize_single_image` for details.
  
      Returns
      -------
      imgaug.augmentables.segmaps.SegmentationMapsOnImage
          Resized segmentation map object.
  
      """
      arr_resized = ia.imresize_single_image(
          self.arr, sizes, interpolation=interpolation
      )
      return self.deepcopy(arr_resized)
  
imports: from __future__ import print_function, division, absolute_import
  import numpy
  import six.moves
  from ..None import imgaug
  from ..augmenters import blend
  from .base import IAugmentable
label_desc: Use image node_id 9 for calling the SegmentationMapsOnImage obj's underlying member method code with example usage: obj.resize(sizes, interpolation) and returns: self