Changeset 6254


Ignore:
Timestamp:
05/10/10 13:51:43 (10 years ago)
Author:
melissa
Message:

Adjust the dimensions if the dimensions stored in the file do not match the actual number of planes.

File:
1 edited

Legend:

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

    r6243 r6254  
    284284    if (getSizeZ() > getImageCount()) core[0].sizeZ = getImageCount(); 
    285285    if (getSizeT() > getImageCount()) core[0].sizeT = getImageCount(); 
     286    if (getSizeZ() * getSizeC() * getSizeT() > getImageCount()) { 
     287      int diff = getSizeZ() * getSizeC() * getSizeT() - getImageCount(); 
     288      if (diff == getSizeC()) { 
     289        if (getSizeZ() > 1) core[0].sizeZ--; 
     290        else if (getSizeT() > 1) core[0].sizeT--; 
     291        else core[0].sizeC /= getSizeC(); 
     292      } 
     293    } 
    286294 
    287295    if (getImageCount() == 1 && (getSizeT() == getSizeY() || 
Note: See TracChangeset for help on using the changeset viewer.