Class StackCopierAtBox

Object
org.anchoranalysis.image.bean.nonbean.spatial.arrange.StackCopierAtBox

public class StackCopierAtBox
extends Object
Copies a source stack into a destination stack at a particular BoundingBox.

Ordinarily both source and destination must have an identical number of channels. However, exceptionally, if source is single-channeled it is replicated as needed to match destination.

Author:
Owen Feehan
  • Method Details

    • copyImageInto

      public static void copyImageInto​(Stack source, Stack destination, org.anchoranalysis.spatial.box.BoundingBox box)
      Copies a source stack into a destination stack at a particular BoundingBox.
      Parameters:
      source - the stack that is copied (either singled-channeled or containing the same number of channels as destination.
      destination - the stack into which source is copied.
      box - the bounding-box in destination into which source is copied.