Changeset 4868


Ignore:
Timestamp:
02/28/09 12:52:00 (11 years ago)
Author:
melissa
Message:

Plane names are stored in the metadata hashtable with keys of the form "Series s Plane p Name" (instead of "Plane p Name").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/OpenlabReader.java

    r4853 r4868  
    362362        planes[imagesFound].planeName = in.readCString().trim(); 
    363363        in.skipBytes((int) (128 - in.getFilePointer() + pointer)); 
    364         addMeta("Plane " + imagesFound + " Name", 
    365           planes[imagesFound].planeName); 
    366364 
    367365        in.skipBytes(128); 
     
    491489    planeOffsets = new int[nSeries][]; 
    492490    Vector tmpOffsets = new Vector(); 
     491    Vector names = new Vector(); 
    493492    for (int i=0; i<nSeries; i++) { 
    494493      for (int q=0; q<planes.length; q++) { 
    495494        if (planes[q] != null && planes[q].series == i) { 
    496495          tmpOffsets.add(new Integer(q)); 
     496          names.add(planes[q].planeName); 
    497497        } 
    498498      } 
     
    500500      for (int q=0; q<planeOffsets[i].length; q++) { 
    501501        planeOffsets[i][q] = ((Integer) tmpOffsets.get(q)).intValue(); 
     502        addMeta("Series " + i + " Plane " + q + " Name", 
     503         names.get(q)); 
    502504      } 
    503505      tmpOffsets.clear(); 
     506      names.clear(); 
    504507    } 
    505508 
Note: See TracChangeset for help on using the changeset viewer.