Class StackArranger
Object
org.anchoranalysis.bean.AnchorBean<StackArranger>
org.anchoranalysis.image.bean.spatial.arrange.StackArranger
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 Summary
Constructors Constructor Description StackArranger() -
Method Summary
Modifier and Type Method Description abstract StackArrangementarrangeStacks(Iterator<org.anchoranalysis.spatial.box.Extent> extents, OperationContext context)Arranges stacks to that they fit together in a single raster.RGBStackcombine(List<RGBStack> stacks, org.anchoranalysis.image.voxel.resizer.VoxelsResizer resizer, OperationContext context)RGBStackcombine(List<RGBStack> stacks, org.anchoranalysis.image.voxel.resizer.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, org.anchoranalysis.image.voxel.resizer.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, org.anchoranalysis.image.voxel.resizer.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<org.anchoranalysis.spatial.box.Extent> extents, OperationContext context) throws ArrangeStackExceptionArranges 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.
-