Changeset 4279


Ignore:
Timestamp:
08/01/08 18:15:14 (12 years ago)
Author:
melissa
Message:

Fixed image count calculation.

File:
1 edited

Legend:

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

    r4202 r4279  
    625625 
    626626    if (isIndexed()) core.rgb[0] = false; 
    627     core.imageCount[0] = getSizeZ() * getSizeT() * getEffectiveSizeC(); 
     627    if (getEffectiveSizeC() == 0) core.imageCount[0] = getSizeZ() * getSizeT(); 
     628    else core.imageCount[0] = getSizeZ() * getSizeT() * getEffectiveSizeC(); 
    628629 
    629630    if (getImageCount() != ifds.length) { 
     
    645646      } 
    646647    } 
     648 
     649    if (getSizeZ() == 0) core.sizeZ[0] = getImageCount(); 
     650    if (getSizeT() == 0) core.sizeT[0] = getImageCount() / getSizeZ(); 
    647651 
    648652    MetadataTools.populatePixels(store, this); 
Note: See TracChangeset for help on using the changeset viewer.