Package loci.formats.in
Class PrairieMetadata.Frame
java.lang.Object
loci.formats.in.PrairieMetadata.Frame
- Enclosing class:
PrairieMetadata
A Prairie
<Frame>, beneath a <Sequence>.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DoubleabsoluteTimeattribute of this<Frame>.private final HashMap<Integer, PrairieMetadata.PFile> <File>elements beneath this<Frame>, keyed on each file'schannel.private PrairieMetadata.PFileThe first actual<File>element for this<Frame>.private final PrairieMetadata.ValueTableTable of key/value pairs for this<Frame>.private Integerindexof this<Frame>.private DoublerelativeTimeattribute of this<Frame>.private PrairieMetadata.SequenceThe<Sequence>containing this<Frame>. -
Constructor Summary
ConstructorsConstructorDescriptionFrame(PrairieMetadata.Sequence sequence, Element frameElement) Creates a new frame by parsing the given<Frame>element. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets theabsoluteTimeassociated with thisFrame.getFile(int channel) Gets theFilewith the givenchannel.Gets the firstFileof theSequence.getGain(int c) Gets thecth gain for thisFrame.Gets the imaging device associated with thisFrame.Extracts the immersion from the objective lens string.intgetIndex()Gets theindexassociated with thisFrame.Gets the lines per frame for thisFrame.Extracts the magnification from the objective lens string.Gets the microns per pixel along X for thisFrame.Gets the microns per pixel along Y for thisFrame.Gets the objective lens string for thisFrame.Gets the numerical aperture of the lens for thisFrame.Extracts the objective manufacturer from the objective lens string.getOffset(int c) Gets thecth offset for thisFrame.Gets the optical zoom associated with thisFrame.Gets the pixels per line for thisFrame.ome.units.quantity.LengthGets the X stage position associated with thisFrame.ome.units.quantity.LengthGets the Y stage position associated with thisFrame.ome.units.quantity.LengthGets the Z stage position associated with thisFrame.doubleGets therelativeTimeassociated with thisFrame.Gets the<Sequence>containing this<Frame>.Gets thevalueof the givenkey, beneath thisFrame, inferring the value from the parent<Sequence>or grandparent<PVScan>section as needed.Gets the table ofFramekey/value pairs.voidParses metadata from the givenFrameelement.private ome.units.quantity.LengthConvert a position number to a length in the microscope reference frame.
-
Field Details
-
sequence
The<Sequence>containing this<Frame>. -
files
<File>elements beneath this<Frame>, keyed on each file'schannel. -
frameValues
Table of key/value pairs for this<Frame>. -
firstFile
The first actual<File>element for this<Frame>. -
relativeTime
relativeTimeattribute of this<Frame>. -
absoluteTime
absoluteTimeattribute of this<Frame>. -
index
indexof this<Frame>.
-
-
Constructor Details
-
Frame
Creates a new frame by parsing the given<Frame>element.
-
-
Method Details
-
getSequence
Gets the<Sequence>containing this<Frame>. -
parse
Parses metadata from the givenFrameelement. -
getRelativeTime
public double getRelativeTime()Gets therelativeTimeassociated with thisFrame. -
getAbsoluteTime
public double getAbsoluteTime()Gets theabsoluteTimeassociated with thisFrame. -
getIndex
public int getIndex()Gets theindexassociated with thisFrame. -
getFirstFile
Gets the firstFileof theSequence. -
getFile
Gets theFilewith the givenchannel. -
getObjectiveLens
Gets the objective lens string for thisFrame. -
getObjectiveManufacturer
Extracts the objective manufacturer from the objective lens string. -
getMagnification
Extracts the magnification from the objective lens string. -
getImmersion
Extracts the immersion from the objective lens string. -
getObjectiveLensNA
Gets the numerical aperture of the lens for thisFrame. -
getPixelsPerLine
Gets the pixels per line for thisFrame. -
getLinesPerFrame
Gets the lines per frame for thisFrame. -
toLength
Convert a position number to a length in the microscope reference frame.- Parameters:
position- a position number, may benullisInvert- if the number's sign should be flipped- Returns:
- a length corresponding to the number, may be
null
-
getPositionX
public ome.units.quantity.Length getPositionX()Gets the X stage position associated with thisFrame. -
getPositionY
public ome.units.quantity.Length getPositionY()Gets the Y stage position associated with thisFrame. -
getPositionZ
public ome.units.quantity.Length getPositionZ()Gets the Z stage position associated with thisFrame. -
getOpticalZoom
Gets the optical zoom associated with thisFrame. -
getMicronsPerPixelX
Gets the microns per pixel along X for thisFrame. -
getMicronsPerPixelY
Gets the microns per pixel along Y for thisFrame. -
getOffset
Gets thecth offset for thisFrame.- Parameters:
c- The 0-based(!) channel index for which to obtain the offset.
-
getGain
Gets thecth gain for thisFrame.- Parameters:
c- The 0-based(!) channel index for which to obtain the gain.
-
getImagingDevice
Gets the imaging device associated with thisFrame. -
getValue
Gets thevalueof the givenkey, beneath thisFrame, inferring the value from the parent<Sequence>or grandparent<PVScan>section as needed. -
getValues
Gets the table ofFramekey/value pairs.
-