Class BoundingBoxMerger

Object
org.anchoranalysis.spatial.box.BoundingBoxMerger

public class BoundingBoxMerger
extends Object
Merges one or more BoundingBox together, to create a single BoundingBox that spans them all.
Author:
Owen Feehan
  • Method Details

    • merge

      public static BoundingBox merge​(Stream<BoundingBox> stream)
      Merges all the bounding boxes in a stream.
      Parameters:
      stream - a stream whose bounding-boxes are to be merged.
      Returns:
      a bounding-box just large enough to include all the bounding-boxes of the objects.