Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.

Ticket #9228: AllPixels.bsh

File AllPixels.bsh, 910 bytes (added by mlinkert-x, 12 years ago)
Line 
1  import loci.formats.IFormatReader;
2  import loci.formats.ImageReader;
3  import loci.formats.MetadataTools;
4
5  long t0 = System.currentTimeMillis();
6  IFormatReader reader = new ImageReader();
7  long t1 = System.currentTimeMillis();
8  reader.setMetadataStore(MetadataTools.createOMEXMLMetadata());
9  long t2 = System.currentTimeMillis();
10  reader.setId("/home/melissa/from-johannes/sdEM20110922_ds2163_2dag_cesAyfp_GolgiCFP_pL5_h20_Cotyl_5_XY1316720345_Z00_T0_C0.tiff");
11  long t3 = System.currentTimeMillis();
12
13  for (int i=0; i<reader.getImageCount(); i++) {
14    reader.openBytes(i);
15  }
16  long t4 = System.currentTimeMillis();
17  reader.close();
18
19  System.out.println("create reader: " + (t1 - t0) + " ms");
20  System.out.println("create metadata structure: " + (t2 - t1) + " ms");
21  System.out.println("initialize file: " + (t3 - t2) + " ms");
22  System.out.println("read all images: " + (t4 - t3) + " ms");

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.8451 sec.)

We're Hiring!