Changeset 2363


Ignore:
Timestamp:
03/01/07 11:26:10 (13 years ago)
Author:
curtis
Message:

Simplify math for getEffectiveSizeC and getRGBChannelCount.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FormatReader.java

    r2350 r2363  
    298298  /* @see IFormatReader#getEffectiveSizeC(String) */ 
    299299  public int getEffectiveSizeC(String id) throws FormatException, IOException { 
    300     return getSizeC(id) / getRGBChannelCount(id); 
     300    // NB: by definition, imageCount == effectiveSizeC * sizeZ * sizeT 
     301    return getImageCount(id) / (getSizeZ(id) * getSizeT(id)); 
    301302  } 
    302303 
    303304  /* @see IFormatReader#getRGBChannelCount(String) */ 
    304305  public int getRGBChannelCount(String id) throws FormatException, IOException { 
    305     return getSizeC(id) / (getImageCount(id) / (getSizeZ(id) * getSizeT(id))); 
     306    return getSizeC(id) / getEffectiveSizeC(id); 
    306307  } 
    307308 
Note: See TracChangeset for help on using the changeset viewer.