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: Create a heatmaps object from a ``[0.0, 1.0]`` float array.
  
  Parameters
  ----------
  arr_0to1 : (H,W) or (H,W,C) ndarray
      Heatmap(s) array, where ``H`` is the height, ``W`` is the width
      and ``C`` is the number of heatmap channels.
      Expected dtype is ``float32``.
  
  shape : tuple of ints
      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).
      If there is not a corresponding image, use the shape of the
      heatmaps array.
  
  min_value : float, optional
      Minimum value of the float heatmaps that the input array
      represents. This will usually be 0.0. In most other cases it will
      be close to the interval ``[0.0, 1.0]``.
      Calling :func:`~imgaug.HeatmapsOnImage.get_arr`, will automatically
      convert the interval ``[0.0, 1.0]`` float array to this
      ``[min, max]`` interval.
  
  max_value : float, optional
      Minimum value of the float heatmaps that the input array
      represents. This will usually be 1.0.
      See parameter `min_value` for details.
  
  Returns
  -------
  imgaug.augmentables.heatmaps.HeatmapsOnImage
      Heatmaps object.
docstr_tok: ["Create","a","heatmaps","object","from","a","``","[","0.0",",","1.0","]","``","float","array",".","Parameters","--","--","--","--","--","arr_0to1",":","(","H",",","W",")","or","(","H",",","W",",","C",")","ndarray","Heatmap","(","s",")","array",",","where","``","H","``","is","the","height",",","``","W","``","is","the","width","and","``","C","``","is","the","number","of","heatmap","channels",".","Expected","dtype","is","``","float32","``",".","shape",":","tuple","of","ints","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",")",".","If","there","is","not","a","corresponding","image",",","use","the","shape","of","the","heatmaps","array",".","min_value",":","float",",","optional","Minimum","value","of","the","float","heatmaps","that","the","input","array","represents",".","This","will","usually","be","0.0",".","In","most","other","cases","it","will","be","close","to","the","interval","``","[","0.0",",","1.0","]","``",".","Calling",":","func",":","`","~imgaug.HeatmapsOnImage.get_arr","`",",","will","automatically","convert","the","interval","``","[","0.0",",","1.0","]","``","float","array","to","this","``","[","min",",","max","]","``","interval",".","max_value",":","float",",","optional","Minimum","value","of","the","float","heatmaps","that","the","input","array","represents",".","This","will","usually","be","1.0",".","See","parameter","`","min_value","`","for","details",".","Returns","--","--","--","-","imgaug.augmentables.heatmaps.HeatmapsOnImage","Heatmaps","object","."]
code: def from_0to1(arr_0to1, shape, min_value=0.0, max_value=1.0):
      """Create a heatmaps object from a ``[0.0, 1.0]`` float array.
  
      Parameters
      ----------
      arr_0to1 : (H,W) or (H,W,C) ndarray
          Heatmap(s) array, where ``H`` is the height, ``W`` is the width
          and ``C`` is the number of heatmap channels.
          Expected dtype is ``float32``.
  
      shape : tuple of ints
          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).
          If there is not a corresponding image, use the shape of the
          heatmaps array.
  
      min_value : float, optional
          Minimum value of the float heatmaps that the input array
          represents. This will usually be 0.0. In most other cases it will
          be close to the interval ``[0.0, 1.0]``.
          Calling :func:`~imgaug.HeatmapsOnImage.get_arr`, will automatically
          convert the interval ``[0.0, 1.0]`` float array to this
          ``[min, max]`` interval.
  
      max_value : float, optional
          Minimum value of the float heatmaps that the input array
          represents. This will usually be 1.0.
          See parameter `min_value` for details.
  
      Returns
      -------
      imgaug.augmentables.heatmaps.HeatmapsOnImage
          Heatmaps object.
  
      """
      heatmaps = HeatmapsOnImage(
          arr_0to1, shape, min_value=0.0, max_value=1.0
      )
      heatmaps.min_value = min_value
      heatmaps.max_value = max_value
      return heatmaps
  
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 14 for calling the HeatmapsOnImage obj's underlying member method code with example usage: obj.from_0to1(arr_0to1, shape, min_value, max_value) and returns: heatmaps