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: Max-pool the heatmap(s) array using a given block/kernel size.
  
  Parameters
  ----------
  block_size : int or tuple of int
      Size of each block of values to pool, aka kernel size.
      See :func:`~imgaug.imgaug.pool` for details.
  
  Returns
  -------
  imgaug.augmentables.heatmaps.HeatmapsOnImage
      Heatmaps after max-pooling.
docstr_tok: ["Max-pool","the","heatmap","(","s",")","array","using","a","given","block\/kernel","size",".","Parameters","--","--","--","--","--","block_size",":","int","or","tuple","of","int","Size","of","each","block","of","values","to","pool",",","aka","kernel","size",".","See",":","func",":","`","~imgaug.imgaug.pool","`","for","details",".","Returns","--","--","--","-","imgaug.augmentables.heatmaps.HeatmapsOnImage","Heatmaps","after","max-pooling","."]
code: def max_pool(self, block_size):
      """Max-pool the heatmap(s) array using a given block/kernel size.
  
      Parameters
      ----------
      block_size : int or tuple of int
          Size of each block of values to pool, aka kernel size.
          See :func:`~imgaug.imgaug.pool` for details.
  
      Returns
      -------
      imgaug.augmentables.heatmaps.HeatmapsOnImage
          Heatmaps after max-pooling.
  
      """
      arr_0to1_reduced = ia.max_pool(self.arr_0to1, block_size)
      return HeatmapsOnImage.from_0to1(
          arr_0to1_reduced,
          shape=self.shape,
          min_value=self.min_value,
          max_value=self.max_value,
      )
  
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 9 for calling the HeatmapsOnImage obj's underlying member method code with example usage: obj.max_pool(block_size) and returns: HeatmapsOnImage