@Override public void setId(String id) throws FormatException, IOException { reader.setId(id); }
@Override public void setId(String id) throws FormatException, IOException { reader.setId(id); }
@Override public byte[][] get8BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get8BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get16BitLookupTable(); }
@Override public void setId(String id) throws FormatException, IOException { IFormatReader currentReader = getReader(id); LOGGER.info("{} initializing {}", currentReader.getClass().getSimpleName(), id); currentReader.setId(id); }
@Override public void setId(String id) throws FormatException, IOException { IFormatReader currentReader = getReader(id); LOGGER.info("{} initializing {}", currentReader.getClass().getSimpleName(), id); currentReader.setId(id); }
@Override public byte[][] get8BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get8BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get16BitLookupTable(); }
@Parameters({"id"}) @BeforeClass public void init(String id) throws FormatException, IOException { this.id = id; reader = new ImageReader(); reader.setFlattenedResolutions(false); reader.setId(id); }
/** Constructs a cache source that draws from the given file. */ public CacheSource(String id) throws CacheException { this(new FileStitcher()); try { reader.setId(id); } catch (FormatException exc) { throw new CacheException(exc); } catch (IOException exc) { throw new CacheException(exc); } }
/** Constructs a cache source that draws from the given file. */ public CacheSource(String id) throws CacheException { this(new FileStitcher()); try { reader.setId(id); } catch (FormatException exc) { throw new CacheException(exc); } catch (IOException exc) { throw new CacheException(exc); } }
@Override public void setId(String id) throws FormatException, IOException { if (isLegacy()) { super.setId(id); } nativeReader.setId(id); nativeReaderInitialized = true; currentId = nativeReader.getCurrentFile(); core = new ArrayList<CoreMetadata>(nativeReader.getCoreMetadataList()); metadata = nativeReader.getGlobalMetadata(); metadataStore = nativeReader.getMetadataStore(); }
@Parameters({"id"}) @BeforeClass public void parse(String id) throws Exception { ServiceFactory factory = new ServiceFactory(); service = factory.getInstance(OMEXMLService.class); metadata = service.createOMEXMLMetadata(); reader = new ImageReader(); reader.setMetadataStore(metadata); reader.setId(id); }
@Override public void setId(String id) throws FormatException, IOException { if (isLegacy()) { super.setId(id); } nativeReader.setId(id); nativeReaderInitialized = true; currentId = nativeReader.getCurrentFile(); core = new ArrayList<CoreMetadata>(nativeReader.getCoreMetadataList()); metadata = nativeReader.getGlobalMetadata(); metadataStore = nativeReader.getMetadataStore(); }
@Test public void setId() throws Exception { reader = new ImageReader(); reader = new ChannelFiller(reader); reader = new ChannelSeparator(reader); reader = new MinMaxCalculator(reader); if (memMap && reader.isSingleFile(id)) { TestTools.mapFile(id); } StopWatch stopWatch = new Slf4JStopWatch(); reader.setId(id); stopWatch.stop(String.format("%s.setId.%s", ((ReaderWrapper) reader).unwrap().getClass().getName(), filename)); seriesCount = reader.getSeriesCount(); }
public void checkImage() throws FormatException, IOException { IFormatReader r = new ImageReader(); r.setId(outFile.getAbsolutePath()); assertEquals(r.getSizeX(), 512); r.close(); }
@Test public void testSetId() throws Exception { reader = new MinMaxCalculator(new ChannelSeparator( new ChannelFiller(new ImageReader()))); metadata = new OMEXMLMetadataImpl(); reader.setMetadataStore(metadata); reader.setId(temporaryFile.getAbsolutePath()); }
@Test public void testSetIdWithNoLightSources() throws Exception { readerWithNoLightSources = new MinMaxCalculator(new ChannelSeparator( new ChannelFiller(new ImageReader()))); metadataWithNoLightSources = new OMEXMLMetadataImpl(); readerWithNoLightSources.setMetadataStore(metadataWithNoLightSources); readerWithNoLightSources.setId( temporaryFileWithNoLightSources.getAbsolutePath()); }
@Test public void testSetId() throws Exception { reader = new MinMaxCalculator(new ChannelSeparator( new ChannelFiller(new ImageReader()))); metadata = new OMEXMLMetadataImpl(); reader.setMetadataStore(metadata); reader.setId(temporaryFile.getAbsolutePath()); }
@Test public void testSetId() throws Exception { reader = new MinMaxCalculator(new ChannelSeparator( new ChannelFiller(new ImageReader()))); metadata = new OMEXMLMetadataImpl(); reader.setMetadataStore(metadata); reader.setId(temporaryFile.getAbsolutePath()); }