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: Return the seg.map array, with original dtype and shape ndim.
  
  Here, "original" denotes the dtype and number of shape dimensions that
  was used when the :class:`SegmentationMapsOnImage` instance was
  created, i.e. upon the call of
  :func:`SegmentationMapsOnImage.__init__`.
  Internally, this class may use a different dtype and shape to simplify
  computations.
  
  .. note::
  
      The height and width may have changed compared to the original
      input due to e.g. pooling operations.
  
  Returns
  -------
  ndarray
      Segmentation map array.
      Same dtype and number of dimensions as was originally used when
      the :class:`SegmentationMapsOnImage` instance was created.
docstr_tok: ["Return","the","seg.map","array",",","with","original","dtype","and","shape","ndim",".","Here",",","``","original","''","denotes","the","dtype","and","number","of","shape","dimensions","that","was","used","when","the",":","class",":","`","SegmentationMapsOnImage","`","instance","was","created",",","i.e",".","upon","the","call","of",":","func",":","`","SegmentationMapsOnImage.__init__","`",".","Internally",",","this","class","may","use","a","different","dtype","and","shape","to","simplify","computations",".","..","note",":",":","The","height","and","width","may","have","changed","compared","to","the","original","input","due","to","e.g",".","pooling","operations",".","Returns","--","--","--","-","ndarray","Segmentation","map","array",".","Same","dtype","and","number","of","dimensions","as","was","originally","used","when","the",":","class",":","`","SegmentationMapsOnImage","`","instance","was","created","."]
code: def get_arr(self):
      """Return the seg.map array, with original dtype and shape ndim.
  
      Here, "original" denotes the dtype and number of shape dimensions that
      was used when the :class:`SegmentationMapsOnImage` instance was
      created, i.e. upon the call of
      :func:`SegmentationMapsOnImage.__init__`.
      Internally, this class may use a different dtype and shape to simplify
      computations.
  
      .. note::
  
          The height and width may have changed compared to the original
          input due to e.g. pooling operations.
  
      Returns
      -------
      ndarray
          Segmentation map array.
          Same dtype and number of dimensions as was originally used when
          the :class:`SegmentationMapsOnImage` instance was created.
  
      """
      input_dtype, input_ndim = self._input_was
      # The internally used int32 has a wider value range than any other
      # input dtype, hence we can simply convert via astype() here.
      arr_input = self.arr.astype(input_dtype)
      if input_ndim == 2:
          assert arr_input.shape[2] == 1, (
              "Originally got a (H,W) segmentation map. Internal array "
              "should now have shape (H,W,1), but got %s. This might be "
              "an internal error." % (arr_input.shape,)
          )
          return arr_input[:, :, 0]
      return arr_input
  
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 2 for calling the SegmentationMapsOnImage obj's underlying member method code with example usage: obj.get_arr() and returns: arr_input, arr_input