/** * Gets the {@code value} of the given {@code key}, beneath this * {@code Frame}, inferring the value from the parent {@code <Sequence>} * or grandparent {@code <PVScan>} section as needed. */ public Value getValue(final String key) { if (frameValues.containsKey(key)) return frameValues.get(key); return getSequence().getValue(key); }
@Override protected void read() throws IOException { super.read(); timeIncrement = getDoubleValue(TRACK_TIME_BETWEEN_STACKS); acquire = getIntValue(TRACK_ACQUIRE) != 0; } }
public boolean allowAutostitching() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( ALLOW_AUTOSTITCHING_KEY, ALLOW_AUTOSTITCHING_DEFAULT); } return ALLOW_AUTOSTITCHING_DEFAULT; }
public boolean useOldPhysicalSizeCalculation() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( OLD_PHYSICAL_SIZE_KEY, OLD_PHYSICAL_SIZE_DEFAULT); } return OLD_PHYSICAL_SIZE_DEFAULT; }
public boolean failOnMissingETS() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( FAIL_ON_MISSING_KEY, FAIL_ON_MISSING_DEFAULT); } return FAIL_ON_MISSING_DEFAULT; }
/** Gets the {@code Frame} at the given ({@code cycle} and {@code index}). */ public Frame getFrame(final int cycle, final int index) { final Sequence sequence = getSequence(cycle); if (sequence == null) return null; return sequence.getFrame(index); }
/** * Gets the {@code value} of the given {@code key}, beneath this * {@code Sequence}, inferring the value from the parent {@code <PVScan>} * section as needed. */ public Value getValue(final String key) { if (sequenceValues.containsKey(key)) return sequenceValues.get(key); return PrairieMetadata.this.getValue(key); }
@Override protected void initVars(String id) throws FormatException, IOException { super.initVars(id); initPOIService(); countImages(); }
@Override protected void fillMetadataPass5(MetadataStore store) throws FormatException, IOException { super.fillMetadataPass5(store); for (String name : tagsToParse) { int imageNum = getImageNumber(name, -1); parseTags(imageNum, name, store); } }
/** Constructs a new JPEGReader. */ public JPEGReader() { super("JPEG", new String[] {"jpg", "jpeg", "jpe"}); nativeReader = new DefaultJPEGReader(); legacyReader = new TileJPEGReader(); nativeReaderInitialized = false; legacyReaderInitialized = false; domains = new String[] {FormatTools.GRAPHICS_DOMAIN}; suffixNecessary = false; }
/** Constructs a new ND2 reader. */ public ND2Reader() { super("Nikon ND2", "nd2"); nativeReader = new NativeND2Reader(); legacyReader = new LegacyND2Reader(); nativeReaderInitialized = false; legacyReaderInitialized = false; domains = new String[] {FormatTools.LM_DOMAIN}; }
/** * Gets the {@code value} of the given {@code key}, beneath this * {@code Frame}, inferring the value from the parent {@code <Sequence>} * or grandparent {@code <PVScan>} section as needed. */ public Value getValue(final String key) { if (frameValues.containsKey(key)) return frameValues.get(key); return getSequence().getValue(key); }
public boolean canReadAttachments() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( INCLUDE_ATTACHMENTS_KEY, INCLUDE_ATTACHMENTS_DEFAULT); } return INCLUDE_ATTACHMENTS_DEFAULT; }
public boolean useOldPhysicalSizeCalculation() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( OLD_PHYSICAL_SIZE_KEY, OLD_PHYSICAL_SIZE_DEFAULT); } return OLD_PHYSICAL_SIZE_DEFAULT; }
@Override protected void read() throws IOException { super.read(); timeIncrement = getDoubleValue(TRACK_TIME_BETWEEN_STACKS); acquire = getIntValue(TRACK_ACQUIRE) != 0; } }
public boolean allowAutostitching() { MetadataOptions options = getMetadataOptions(); if (options instanceof DynamicMetadataOptions) { return ((DynamicMetadataOptions) options).getBoolean( ALLOW_AUTOSTITCHING_KEY, ALLOW_AUTOSTITCHING_DEFAULT); } return ALLOW_AUTOSTITCHING_DEFAULT; }