class_docstr: Object representing heatmaps on a single image.
  
  Parameters
  ----------
  arr : (H,W) ndarray or (H,W,C) ndarray
      Array representing the heatmap(s) on a single image.
      Multiple heatmaps may be provided, in which case ``C`` is expected to
      denote the heatmap index.
      The array must be of dtype ``float32``.
  
  shape : tuple of int
      Shape of the image on which the heatmap(s) is/are placed.
      **Not** the shape of the heatmap(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 heatmap(s) array
      (analogous ``W_arr``).
  
  min_value : float, optional
      Minimum value for the heatmaps that `arr` represents. This will
      usually be ``0.0``.
  
  max_value : float, optional
      Maximum value for the heatmaps that `arr` represents. This will
      usually be ``1.0``.
class_docstr_tok: ["Object","representing","heatmaps","on","a","single","image",".","Parameters","--","--","--","--","--","arr",":","(","H",",","W",")","ndarray","or","(","H",",","W",",","C",")","ndarray","Array","representing","the","heatmap","(","s",")","on","a","single","image",".","Multiple","heatmaps","may","be","provided",",","in","which","case","``","C","``","is","expected","to","denote","the","heatmap","index",".","The","array","must","be","of","dtype","``","float32","``",".","shape",":","tuple","of","int","Shape","of","the","image","on","which","the","heatmap","(","s",")","is\/are","placed",".","*","*","Not","*","*","the","shape","of","the","heatmap","(","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","heatmap","(","s",")","array","(","analogous","``","W_arr","``",")",".","min_value",":","float",",","optional","Minimum","value","for","the","heatmaps","that","`","arr","`","represents",".","This","will","usually","be","``","0.0","``",".","max_value",":","float",",","optional","Maximum","value","for","the","heatmaps","that","`","arr","`","represents",".","This","will","usually","be","``","1.0","``","."]
docstr: Get the heatmap's array in value range provided to ``__init__()``.
  
  The :class:`HeatmapsOnImage` object saves heatmaps internally in the
  value range ``[0.0, 1.0]``. This function converts the internal
  representation to ``[min, max]``, where ``min`` and ``max`` are
  provided to :func:`HeatmapsOnImage.__init__` upon instantiation of
  the object.
  
  Returns
  -------
  (H,W) ndarray or (H,W,C) ndarray
      Heatmap array of dtype ``float32``.
docstr_tok: ["Get","the","heatmap","'s","array","in","value","range","provided","to","``","__init__","(",")","``",".","The",":","class",":","`","HeatmapsOnImage","`","object","saves","heatmaps","internally","in","the","value","range","``","[","0.0",",","1.0","]","``",".","This","function","converts","the","internal","representation","to","``","[","min",",","max","]","``",",","where","``","min","``","and","``","max","``","are","provided","to",":","func",":","`","HeatmapsOnImage.__init__","`","upon","instantiation","of","the","object",".","Returns","--","--","--","-","(","H",",","W",")","ndarray","or","(","H",",","W",",","C",")","ndarray","Heatmap","array","of","dtype","``","float32","``","."]
code: def get_arr(self):
      """Get the heatmap's array in value range provided to ``__init__()``.
  
      The :class:`HeatmapsOnImage` object saves heatmaps internally in the
      value range ``[0.0, 1.0]``. This function converts the internal
      representation to ``[min, max]``, where ``min`` and ``max`` are
      provided to :func:`HeatmapsOnImage.__init__` upon instantiation of
      the object.
  
      Returns
      -------
      (H,W) ndarray or (H,W,C) ndarray
          Heatmap array of dtype ``float32``.
  
      """
      if self.arr_was_2d and self.arr_0to1.shape[2] == 1:
          arr = self.arr_0to1[:, :, 0]
      else:
          arr = self.arr_0to1
  
      eps = np.finfo(np.float32).eps
      min_is_zero = 0.0 - eps < self.min_value < 0.0 + eps
      max_is_one = 1.0 - eps < self.max_value < 1.0 + eps
      if min_is_zero and max_is_one:
          return np.copy(arr)
  
      diff = self.max_value - self.min_value
      return self.min_value + diff * arr
  
imports: from __future__ import print_function, division, absolute_import
  import numpy
  import six.moves
  from ..None import imgaug
  from .base import IAugmentable
label_desc: Use image node_id 2 for calling the HeatmapsOnImage obj's underlying member method code with example usage: obj.get_arr() and returns: unknown, np