Changeset 4740


Ignore:
Timestamp:
01/13/09 12:35:12 (11 years ago)
Author:
melissa
Message:

Fixed plane index bug.

File:
1 edited

Legend:

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

    r4673 r4740  
    5757 
    5858  private MetadataStore store; 
     59 
     60  private Vector nextPlane; 
    5961 
    6062  // -- Constructor -- 
     
    7880    bits = new Vector(); 
    7981    lutNames = new Vector(); 
     82    nextPlane = new Vector(); 
    8083    this.store = store; 
    8184  } 
     
    196199      if (fullSeries == null || fullSeries.equals("")) fullSeries = series; 
    197200      seriesNames.add(fullSeries); 
     201      nextPlane.add(new Integer(0)); 
    198202    } 
    199203    else if (qName.equals("ChannelDescription")) { 
     
    488492      metadata.put(fullSeries + qName + " - " + frame, time); 
    489493 
    490       int planeNum = Integer.parseInt(frame.replaceAll("RelTimeStamp", "")); 
     494      int planeNum = 
     495        ((Integer) nextPlane.get(seriesNames.size() - 1)).intValue(); 
    491496      store.setPlaneTimingDeltaT(new Float(time), seriesNames.size() - 1, 0, 
    492497        planeNum); 
     498      planeNum++; 
     499      nextPlane.setElementAt(new Integer(planeNum), seriesNames.size() - 1); 
    493500    } 
    494501    else count = 0; 
Note: See TracChangeset for help on using the changeset viewer.