Changeset 4137


Ignore:
Timestamp:
06/27/08 09:32:00 (12 years ago)
Author:
melissa
Message:

Retrieve pixel sizes for the correct series (instead of the first series).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Util.java

    r4130 r4137  
    323323    ImagePlus imp, int series) 
    324324  { 
    325     double xcal = Double.NaN, ycal = Double.NaN, zcal = Double.NaN, tcal = Double.NaN; 
    326  
    327     Float xf = retrieve.getDimensionsPhysicalSizeX(0, 0); 
     325    double xcal = Double.NaN, ycal = Double.NaN; 
     326    double zcal = Double.NaN, tcal = Double.NaN; 
     327 
     328    Float xf = retrieve.getDimensionsPhysicalSizeX(series, 0); 
    328329    if (xf != null) xcal = xf.floatValue(); 
    329     Float yf = retrieve.getDimensionsPhysicalSizeY(0, 0); 
     330    Float yf = retrieve.getDimensionsPhysicalSizeY(series, 0); 
    330331    if (yf != null) ycal = yf.floatValue(); 
    331     Float zf = retrieve.getDimensionsPhysicalSizeZ(0, 0); 
     332    Float zf = retrieve.getDimensionsPhysicalSizeZ(series, 0); 
    332333    if (zf != null) zcal = zf.floatValue(); 
    333     Float tf = retrieve.getDimensionsTimeIncrement(0, 0); 
     334    Float tf = retrieve.getDimensionsTimeIncrement(series, 0); 
    334335    if (tf != null) tcal = tf.floatValue(); 
    335336 
Note: See TracChangeset for help on using the changeset viewer.