Class StackArranger

Object
org.anchoranalysis.bean.AnchorBean<StackArranger>
org.anchoranalysis.image.bean.spatial.arrange.StackArranger
Direct Known Subclasses:
Fill, Overlay, Single, Tile

public abstract class StackArranger
extends AnchorBean<StackArranger>
Base class for a method that determines positions for RGBStacks when combined onto a single plane.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • combine

      public RGBStack combine​(List<RGBStack> stacks, org.anchoranalysis.image.voxel.resizer.VoxelsResizer resizer, OperationContext context) throws ArrangeStackException
      Creates a new RGBStack of voxel data type unsigned byte that is a combination of other RGBStacks.
      Parameters:
      stacks - the images that will be combined.
      resizer - resizes an image, if it doesn't match the bounding-box size for the copy operation.
      context - objects for the operation.
      Returns:
      a newly created RGBStack with all stacks copied into it.
      Throws:
      ArrangeStackException - if there are more stacks than can be arranged, or otherwise an error occurs arranging them.
    • combine

      public RGBStack combine​(List<RGBStack> stacks, org.anchoranalysis.image.voxel.resizer.VoxelsResizer resizer, ChannelFactorySingleType factory, OperationContext context) throws ArrangeStackException
      Creates a new RGBStack that is a combination of other RGBStacks.
      Parameters:
      stacks - the images that will be combined.
      resizer - resizes an image, if it doesn't match the bounding-box size for the copy operation.
      factory - the factory used to create the new RGBStack.
      context - objects for the operation.
      Returns:
      a newly created RGBStack with all stacks copied into it.
      Throws:
      ArrangeStackException - if there are more stacks than can be arranged, or otherwise an error occurs arranging them.
    • arrangeStacks

      public abstract StackArrangement arrangeStacks​(Iterator<org.anchoranalysis.spatial.box.Extent> extents, OperationContext context) throws ArrangeStackException
      Arranges stacks to that they fit together in a single raster.
      Parameters:
      extents - the size of each respective stack for the arrangement.
      context - objects for the operation.
      Returns:
      bounding-boxes for each respective RGBStack in the unified plane.
      Throws:
      ArrangeStackException - if a bounding-box cannot be determined for any stack.