public class PrairieMetadata.Frame
extends java.lang.Object
<Frame>
, beneath a <Sequence>
.Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
absoluteTime
absoluteTime attribute of this <Frame> . |
private java.util.HashMap<java.lang.Integer,PrairieMetadata.PFile> |
files
<File> elements beneath this <Frame> , keyed on each
file's channel . |
private PrairieMetadata.PFile |
firstFile
The first actual
<File> element for this <Frame> . |
private PrairieMetadata.ValueTable |
frameValues
Table of key/value pairs for this
<Frame> . |
private java.lang.Integer |
index
index of this <Frame> . |
private java.lang.Double |
relativeTime
relativeTime attribute of this <Frame> . |
private PrairieMetadata.Sequence |
sequence
The
<Sequence> containing this <Frame> . |
Constructor and Description |
---|
Frame(PrairieMetadata.Sequence sequence,
org.w3c.dom.Element frameElement)
Creates a new frame by parsing the given
<Frame> element. |
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteTime()
Gets the
absoluteTime associated with this Frame . |
PrairieMetadata.PFile |
getFile(int channel)
Gets the
File with the given channel . |
PrairieMetadata.PFile |
getFirstFile()
Gets the first
File of the Sequence . |
java.lang.Double |
getGain(int c)
Gets the
c th gain for this Frame . |
java.lang.String |
getImagingDevice()
Gets the imaging device associated with this
Frame . |
java.lang.String |
getImmersion()
Extracts the immersion from the objective lens string.
|
int |
getIndex()
Gets the
index associated with this Frame . |
java.lang.Integer |
getLinesPerFrame()
Gets the lines per frame for this
Frame . |
java.lang.Double |
getMagnification()
Extracts the magnification from the objective lens string.
|
java.lang.Double |
getMicronsPerPixelX()
Gets the microns per pixel along X for this
Frame . |
java.lang.Double |
getMicronsPerPixelY()
Gets the microns per pixel along Y for this
Frame . |
java.lang.String |
getObjectiveLens()
Gets the objective lens string for this
Frame . |
java.lang.Double |
getObjectiveLensNA()
Gets the numerical aperture of the lens for this
Frame . |
java.lang.String |
getObjectiveManufacturer()
Extracts the objective manufacturer from the objective lens string.
|
java.lang.Double |
getOffset(int c)
Gets the
c th offset for this Frame . |
java.lang.Double |
getOpticalZoom()
Gets the optical zoom associated with this
Frame . |
java.lang.Integer |
getPixelsPerLine()
Gets the pixels per line for this
Frame . |
ome.units.quantity.Length |
getPositionX()
Gets the X stage position associated with this
Frame . |
ome.units.quantity.Length |
getPositionY()
Gets the Y stage position associated with this
Frame . |
ome.units.quantity.Length |
getPositionZ()
Gets the Z stage position associated with this
Frame . |
double |
getRelativeTime()
Gets the
relativeTime associated with this Frame . |
PrairieMetadata.Sequence |
getSequence()
Gets the
<Sequence> containing this <Frame> . |
PrairieMetadata.Value |
getValue(java.lang.String key)
Gets the
value of the given key , beneath this
Frame , inferring the value from the parent <Sequence>
or grandparent <PVScan> section as needed. |
PrairieMetadata.ValueTable |
getValues()
Gets the table of
Frame key/value pairs. |
void |
parse(org.w3c.dom.Element frameElement)
Parses metadata from the given
Frame element. |
private ome.units.quantity.Length |
toLength(java.lang.Double position,
boolean isInvert)
Convert a position number to a length in the microscope reference frame.
|
private PrairieMetadata.Sequence sequence
<Sequence>
containing this <Frame>
.private final java.util.HashMap<java.lang.Integer,PrairieMetadata.PFile> files
<File>
elements beneath this <Frame>
, keyed on each
file's channel
.private final PrairieMetadata.ValueTable frameValues
<Frame>
.private PrairieMetadata.PFile firstFile
<File>
element for this <Frame>
.private java.lang.Double relativeTime
relativeTime
attribute of this <Frame>
.private java.lang.Double absoluteTime
absoluteTime
attribute of this <Frame>
.private java.lang.Integer index
index
of this <Frame>
.public Frame(PrairieMetadata.Sequence sequence, org.w3c.dom.Element frameElement)
<Frame>
element.public PrairieMetadata.Sequence getSequence()
<Sequence>
containing this <Frame>
.public void parse(org.w3c.dom.Element frameElement)
Frame
element.public double getRelativeTime()
relativeTime
associated with this Frame
.public double getAbsoluteTime()
absoluteTime
associated with this Frame
.public int getIndex()
index
associated with this Frame
.public PrairieMetadata.PFile getFirstFile()
File
of the Sequence
.public PrairieMetadata.PFile getFile(int channel)
File
with the given channel
.public java.lang.String getObjectiveLens()
Frame
.public java.lang.String getObjectiveManufacturer()
public java.lang.Double getMagnification()
public java.lang.String getImmersion()
public java.lang.Double getObjectiveLensNA()
Frame
.public java.lang.Integer getPixelsPerLine()
Frame
.public java.lang.Integer getLinesPerFrame()
Frame
.private ome.units.quantity.Length toLength(java.lang.Double position, boolean isInvert)
position
- a position number, may be null
isInvert
- if the number's sign should be flippednull
public ome.units.quantity.Length getPositionX()
Frame
.public ome.units.quantity.Length getPositionY()
Frame
.public ome.units.quantity.Length getPositionZ()
Frame
.public java.lang.Double getOpticalZoom()
Frame
.public java.lang.Double getMicronsPerPixelX()
Frame
.public java.lang.Double getMicronsPerPixelY()
Frame
.public java.lang.Double getOffset(int c)
c
th offset for this Frame
.c
- The 0-based(!) channel index for which to obtain the offset.public java.lang.Double getGain(int c)
c
th gain for this Frame
.c
- The 0-based(!) channel index for which to obtain the gain.public java.lang.String getImagingDevice()
Frame
.public PrairieMetadata.Value getValue(java.lang.String key)
value
of the given key
, beneath this
Frame
, inferring the value from the parent <Sequence>
or grandparent <PVScan>
section as needed.public PrairieMetadata.ValueTable getValues()
Frame
key/value pairs.Copyright © 2023 Open Microscopy Environment