Changeset 2937


Ignore:
Timestamp:
07/06/07 08:22:30 (13 years ago)
Author:
melissa
Message:

Added new reader for Improvision TIFFs.

Location:
trunk/loci/formats
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/TiffReader.java

    r2807 r2937  
    442442    } 
    443443 
    444     // check for Improvision-style TIFF comment 
    445     boolean iv = comment != null && comment.startsWith("[Improvision Data]\n"); 
    446     put("Improvision", iv ? "yes" : "no"); 
    447     if (iv) { 
    448       // parse key/value pairs 
    449       StringTokenizer st = new StringTokenizer(comment, "\n"); 
    450       while (st.hasMoreTokens()) { 
    451         String line = st.nextToken(); 
    452         int equals = line.indexOf("="); 
    453         if (equals < 0) continue; 
    454         String key = line.substring(0, equals); 
    455         String value = line.substring(equals + 1); 
    456         addMeta(key, value); 
    457       } 
    458       metadata.remove("Comment"); 
    459     } 
    460  
    461444    // check for MetaMorph-style TIFF comment 
    462445    boolean metamorph = comment != null && getMeta("Software") != null && 
  • trunk/loci/formats/readers.txt

    r2924 r2937  
    8181loci.formats.in.PrairieReader      # xml, cfg, tif 
    8282loci.formats.in.MicromanagerReader # txt, tif 
     83loci.formats.in.ImprovisionTiffReader # tif 
    8384 
    8485# standard TIFF reader must go last (it accepts any TIFF) 
Note: See TracChangeset for help on using the changeset viewer.