Changeset 5710


Ignore:
Timestamp:
11/20/09 09:26:54 (10 years ago)
Author:
curtis
Message:

Fix bug with ZCT mapping. Without this fix, Bio-Formats has
a ZCT mismatch when reading SDT files into SLIM Plotter.
TODO: Determine if this fix is really necessary.

File:
1 edited

Legend:

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

    r5708 r5710  
    189189 
    190190  public int getEffectiveSizeC() { 
    191     return reader.getEffectiveSizeC(); 
    192     //int sizeZT = getSizeZ() * getSizeT(); 
    193     //if (sizeZT == 0) return 0; 
    194     //return getImageCount() / sizeZT; 
     191    //return reader.getEffectiveSizeC(); 
     192    int sizeZT = getSizeZ() * getSizeT(); 
     193    if (sizeZT == 0) return 0; 
     194    return getImageCount() / sizeZT; 
    195195  } 
    196196 
    197197  public int getRGBChannelCount() { 
    198     return reader.getRGBChannelCount(); 
    199     //int effSizeC = getEffectiveSizeC(); 
    200     //if (effSizeC == 0) return 0; 
    201     //return getSizeC() / effSizeC; 
     198    //return reader.getRGBChannelCount(); 
     199    int effSizeC = getEffectiveSizeC(); 
     200    if (effSizeC == 0) return 0; 
     201    return getSizeC() / effSizeC; 
    202202  } 
    203203 
Note: See TracChangeset for help on using the changeset viewer.