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.A (maybe longer) description identifying the bean and perhaps its key parameters.getAlign()
Indicates how to align the image across the three axes.void
Indicates how to align the image across the three axes.Methods inherited from class org.anchoranalysis.image.bean.spatial.arrange.StackArranger
combine, combine
Methods 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 newOverlay
instance.- Parameters:
align
- Indicates how to align the image across the three axes.
-
-
Method Details
-
describeBean
Description copied from class:AnchorBean
A (maybe longer) description identifying the bean and perhaps its key parameters.By default, it returns the same as
AnchorBean.getBeanName()
but beans can optionally override it- Overrides:
describeBean
in classAnchorBean<StackArranger>
- Returns:
- either the short-name of the bean, or a longer description
-
arrangeStacks
public StackArrangement arrangeStacks(Iterator<Extent> extents, OperationContext context) throws ArrangeStackException Description copied from class:StackArranger
Arranges stacks to that they fit together in a single raster.- Specified by:
arrangeStacks
in classStackArranger
- 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.
-
getAlign
Indicates how to align the image across the three axes. -
setAlign
Indicates how to align the image across the three axes.
-