class_docstr: Class encapsulating a batch during the augmentation process.
  
  Data within the batch is already verified and normalized, similar to
  :class:`Batch`. Data within the batch may be changed in-place. No initial
  copy is needed.
  
  Added in 0.4.0.
  
  Parameters
  ----------
  images : None or (N,H,W,C) ndarray or list of (H,W,C) ndarray
      The images to augment.
  
  heatmaps : None or list of imgaug.augmentables.heatmaps.HeatmapsOnImage
      The heatmaps to augment.
  
  segmentation_maps : None or list of imgaug.augmentables.segmaps.SegmentationMapsOnImage
      The segmentation maps to augment.
  
  keypoints : None or list of imgaug.augmentables.kps.KeypointOnImage
      The keypoints to augment.
  
  bounding_boxes : None or list of imgaug.augmentables.bbs.BoundingBoxesOnImage
      The bounding boxes to augment.
  
  polygons : None or list of imgaug.augmentables.polys.PolygonsOnImage
      The polygons to augment.
  
  line_strings : None or list of imgaug.augmentables.lines.LineStringsOnImage
      The line strings to augment.
class_docstr_tok: ["Class","encapsulating","a","batch","during","the","augmentation","process",".","Data","within","the","batch","is","already","verified","and","normalized",",","similar","to",":","class",":","`","Batch","`",".","Data","within","the","batch","may","be","changed","in-place",".","No","initial","copy","is","needed",".","Added","in","0.4.0",".","Parameters","--","--","--","--","--","images",":","None","or","(","N",",","H",",","W",",","C",")","ndarray","or","list","of","(","H",",","W",",","C",")","ndarray","The","images","to","augment",".","heatmaps",":","None","or","list","of","imgaug.augmentables.heatmaps.HeatmapsOnImage","The","heatmaps","to","augment",".","segmentation_maps",":","None","or","list","of","imgaug.augmentables.segmaps.SegmentationMapsOnImage","The","segmentation","maps","to","augment",".","keypoints",":","None","or","list","of","imgaug.augmentables.kps.KeypointOnImage","The","keypoints","to","augment",".","bounding_boxes",":","None","or","list","of","imgaug.augmentables.bbs.BoundingBoxesOnImage","The","bounding","boxes","to","augment",".","polygons",":","None","or","list","of","imgaug.augmentables.polys.PolygonsOnImage","The","polygons","to","augment",".","line_strings",":","None","or","list","of","imgaug.augmentables.lines.LineStringsOnImage","The","line","strings","to","augment","."]
docstr: Convert this batch into a :class:`Batch` instance.
  
  Added in 0.4.0.
  
  Parameters
  ----------
  batch_before_aug : imgaug.augmentables.batches.Batch
      The batch before augmentation. It is required to set the input
      data of the :class:`Batch` instance, e.g. ``images_unaug``
      or ``data``.
  
  Returns
  -------
  imgaug.augmentables.batches.Batch
      Batch, with original unaugmented inputs from `batch_before_aug`
      and augmented outputs from this :class:`_BatchInAugmentation`
      instance.
docstr_tok: ["Convert","this","batch","into","a",":","class",":","`","Batch","`","instance",".","Added","in","0.4.0",".","Parameters","--","--","--","--","--","batch_before_aug",":","imgaug.augmentables.batches.Batch","The","batch","before","augmentation",".","It","is","required","to","set","the","input","data","of","the",":","class",":","`","Batch","`","instance",",","e.g",".","``","images_unaug","``","or","``","data","``",".","Returns","--","--","--","-","imgaug.augmentables.batches.Batch","Batch",",","with","original","unaugmented","inputs","from","`","batch_before_aug","`","and","augmented","outputs","from","this",":","class",":","`","_BatchInAugmentation","`","instance","."]
code: def to_batch(self, batch_before_aug):
      """Convert this batch into a :class:`Batch` instance.
  
      Added in 0.4.0.
  
      Parameters
      ----------
      batch_before_aug : imgaug.augmentables.batches.Batch
          The batch before augmentation. It is required to set the input
          data of the :class:`Batch` instance, e.g. ``images_unaug``
          or ``data``.
  
      Returns
      -------
      imgaug.augmentables.batches.Batch
          Batch, with original unaugmented inputs from `batch_before_aug`
          and augmented outputs from this :class:`_BatchInAugmentation`
          instance.
  
      """
      batch = Batch(
          images=batch_before_aug.images_unaug,
          heatmaps=batch_before_aug.heatmaps_unaug,
          segmentation_maps=batch_before_aug.segmentation_maps_unaug,
          keypoints=batch_before_aug.keypoints_unaug,
          bounding_boxes=batch_before_aug.bounding_boxes_unaug,
          polygons=batch_before_aug.polygons_unaug,
          line_strings=batch_before_aug.line_strings_unaug,
          data=batch_before_aug.data,
      )
      batch.images_aug = self.images
      batch.heatmaps_aug = self.heatmaps
      batch.segmentation_maps_aug = self.segmentation_maps
      batch.keypoints_aug = self.keypoints
      batch.bounding_boxes_aug = self.bounding_boxes
      batch.polygons_aug = self.polygons
      batch.line_strings_aug = self.line_strings
      return batch
  
imports: from __future__ import print_function, division, absolute_import
  import collections
  import numpy
  from ..None import imgaug
  from .None import normalization
  from .None import utils
label_desc: Use image node_id 14 for calling the _BatchInAugmentation obj's underlying member method code with example usage: obj.to_batch(batch_before_aug) and returns: batch