Class Overlay
Object
org.anchoranalysis.bean.AnchorBean<StackArranger>
org.anchoranalysis.image.bean.spatial.arrange.StackArranger
org.anchoranalysis.image.bean.spatial.arrange.overlay.Overlay
public class Overlay extends StackArranger
Overlays one image on the other.
- first image passed is assumed to be the source.
- second image passed is assumed to be the overlay.
We have no Z implemented yet, so we always overlay at z position 0.
- Author:
- Owen Feehan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description StackArrangementarrangeStacks(Iterator<org.anchoranalysis.spatial.box.Extent> extents, OperationContext context)Arranges stacks to that they fit together in a single raster.StringdescribeBean()AligngetAlign()Indicates how to align the image across the three axes.voidsetAlign(Align align)Indicates how to align the image across the three axes.Methods inherited from class org.anchoranalysis.image.bean.spatial.arrange.StackArranger
combine, combineMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Overlay
Creates with alignment text for each axis.- Parameters:
alignX- indicates how to align the image across the X-axis: one oftop, bottom, center.alignY- indicates how to align the image across the Y-axis (i.e. vertically): one oftop, bottom, center.alignZ- indicates how to align the image across the Z-axis: one oftop, bottom, center, repeat. SeealignZ.
-
Overlay
public Overlay() -
Overlay
-
-
Method Details
-
describeBean
- Overrides:
describeBeanin classAnchorBean<StackArranger>
-
arrangeStacks
public StackArrangement arrangeStacks(Iterator<org.anchoranalysis.spatial.box.Extent> extents, OperationContext context) throws ArrangeStackExceptionDescription copied from class:StackArrangerArranges stacks to that they fit together in a single raster.- Specified by:
arrangeStacksin classStackArranger- 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.
-
getAlign
Indicates how to align the image across the three axes. -
setAlign
Indicates how to align the image across the three axes.
-