class_docstr: Map the image array by simple functions.
class_docstr_tok: ["Map","the","image","array","by","simple","functions","."]
docstr: Args:
      func: a function which takes an image array and return an augmented one
      coord_func: optional. A function which takes coordinates and return augmented ones.
          Coordinates should be Nx2 array of (x, y)s.
docstr_tok: ["Args",":","func",":","a","function","which","takes","an","image","array","and","return","an","augmented","one","coord_func",":","optional",".","A","function","which","takes","coordinates","and","return","augmented","ones",".","Coordinates","should","be","Nx2","array","of","(","x",",","y",")","s","."]
code: def __init__(self, func, coord_func=None):
      """
      Args:
          func: a function which takes an image array and return an augmented one
          coord_func: optional. A function which takes coordinates and return augmented ones.
              Coordinates should be Nx2 array of (x, y)s.
      """
      super(MapImage, self).__init__()
      self.func = func
      self.coord_func = coord_func
  
imports: from .base import ImageAugmentor
  from .transform import NoOpTransform, TransformList, TransformFactory
label_desc: Use image node_id 1 to create a new MapImage object from inherited base classes: ImageAugmentor with example: obj = MapImage(func, coord_func)