Changeset 4032


Ignore:
Timestamp:
05/10/08 13:00:03 (12 years ago)
Author:
melissa
Message:

Fixed off-by-1 in DeltaT population; adjusted DeltaT values to start with 0.

File:
1 edited

Legend:

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

    r4031 r4032  
    662662    store.setDimensionsPhysicalSizeZ(pixZ, 0, 0); 
    663663 
     664    float firstStamp = ((Double) timestamps.get(0)).floatValue(); 
     665 
    664666    for (int i=0; i<core.imageCount[0]; i++) { 
    665667      int[] zct = FormatTools.getZCTCoords(this, i); 
     
    668670      store.setPlaneTheT(new Integer(zct[2]), 0, 0, i); 
    669671 
    670       if (zct[2] + 1 < timestamps.size()) { 
     672      if (zct[2] < timestamps.size()) { 
    671673        float thisStamp = ((Double) timestamps.get(zct[2])).floatValue(); 
    672         store.setPlaneTimingDeltaT(new Float(thisStamp), 0, 0, i); 
     674        store.setPlaneTimingDeltaT(new Float(thisStamp - firstStamp), 0, 0, i); 
    673675        float nextStamp = i < core.sizeT[0] - 1 ? 
    674676          ((Double) timestamps.get(zct[2] + 1)).floatValue() : thisStamp; 
Note: See TracChangeset for help on using the changeset viewer.