Class Overlay
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrangeStacks(Iterator<Extent> extents, OperationContext context) Arranges stacks to that they fit together in a single raster.getAlign()Indicates how to align the image across the three axes.voidIndicates 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
Creates a newOverlayinstance.- Parameters:
align- Indicates how to align the image across the three axes.
-
-
Method Details
-
describeBean
- Overrides:
describeBeanin classAnchorBean<StackArranger>
-
arrangeStacks
public StackArrangement arrangeStacks(Iterator<Extent> extents, OperationContext context) throws ArrangeStackException Description 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.
-