@BeforeClass public void setUp() { pixelsOnly = new DeltavisionReader(); pixelsOnly.getMetadataOptions().setMetadataLevel(MetadataLevel.MINIMUM); all = new DeltavisionReader(); all.getMetadataOptions().setMetadataLevel(MetadataLevel.ALL); }
private IFormatReader getReader(String file, boolean omexml) throws FormatException, IOException { IFormatReader pnl = new DeltavisionReader(); if (checkSuffix(file, "tif")) { pnl = new MetamorphReader(); } if (omexml) { IMetadata metadata; try { metadata = service.createOMEXMLMetadata(); } catch (ServiceException exc) { throw new FormatException("Could not create OME-XML store.", exc); } pnl.setMetadataStore(metadata); } pnl.setId(file); return pnl; }
private IFormatReader getReader(String file, boolean omexml) throws FormatException, IOException { IFormatReader pnl = new DeltavisionReader(); if (checkSuffix(file, "tif")) { pnl = new MetamorphReader(); } if (omexml) { IMetadata metadata; try { metadata = service.createOMEXMLMetadata(); } catch (ServiceException exc) { throw new FormatException("Could not create OME-XML store.", exc); } pnl.setMetadataStore(metadata); } pnl.setId(file); return pnl; }