Changeset 7043


Ignore:
Timestamp:
10/07/10 15:39:27 (9 years ago)
Author:
melissa
Message:

Fixed stage position indices, see #576.

File:
1 edited

Legend:

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

    r7040 r7043  
    10711071          store.setPlaneExposureTime(nextStamp - thisStamp, series, i); 
    10721072        } 
    1073         if (xCoordinates.size() > 0) { 
    1074           double planesPerStage = 
    1075             (double) getImageCount() / xCoordinates.size(); 
    1076           int stage = (int) (i / planesPerStage); 
    1077           store.setPlanePositionX(xCoordinates.get(stage), series, i); 
    1078           store.setPlanePositionY(yCoordinates.get(stage), series, i); 
    1079           store.setPlanePositionZ(zCoordinates.get(stage), series, i); 
     1073        if (xCoordinates.size() > series) { 
     1074          store.setPlanePositionX(xCoordinates.get(series), series, i); 
     1075          store.setPlanePositionY(yCoordinates.get(series), series, i); 
     1076          store.setPlanePositionZ(zCoordinates.get(series), series, i); 
    10801077        } 
    10811078      } 
Note: See TracChangeset for help on using the changeset viewer.