Class StackArranger
Base class for a method that determines positions for
RGBStacks when combined onto a
single plane.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StackArrangementarrangeStacks(Iterator<Extent> extents, OperationContext context) Arranges stacks to that they fit together in a single raster.combine(List<RGBStack> stacks, VoxelsResizer resizer, OperationContext context) combine(List<RGBStack> stacks, VoxelsResizer resizer, ChannelFactorySingleType factory, OperationContext context) Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
StackArranger
public StackArranger()
-
-
Method Details
-
combine
public RGBStack combine(List<RGBStack> stacks, VoxelsResizer resizer, OperationContext context) throws ArrangeStackException - 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
RGBStackwith allstackscopied into it. - Throws:
ArrangeStackException- if there are morestacksthan can be arranged, or otherwise an error occurs arranging them.
-
combine
public RGBStack combine(List<RGBStack> stacks, VoxelsResizer resizer, ChannelFactorySingleType factory, OperationContext context) throws ArrangeStackException - 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 newRGBStack.context- objects for the operation.- Returns:
- a newly created
RGBStackwith allstackscopied into it. - Throws:
ArrangeStackException- if there are morestacksthan can be arranged, or otherwise an error occurs arranging them.
-
arrangeStacks
public abstract StackArrangement arrangeStacks(Iterator<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
RGBStackin the unified plane. - Throws:
ArrangeStackException- if a bounding-box cannot be determined for any stack.
-