Changeset 3367


Ignore:
Timestamp:
11/13/07 18:54:16 (12 years ago)
Author:
melissa
Message:

Fixed sizeC detection.

File:
1 edited

Legend:

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

    r3354 r3367  
    218218 
    219219    core.rgb[0] = false; 
    220     core.sizeC[0] = iCount < 5 ? iCount : 1; 
     220    core.sizeC[0] = iCount; 
     221    if (core.sizeX[0] * core.sizeY[0] * 2 * (uCount + hCount - 1) >= 
     222      in.length()) 
     223    { 
     224      core.sizeC[0] = 1; 
     225    } 
    221226 
    222227    if (core.sizeC[0] == 0) core.sizeC[0] = 1; 
     
    294299        (int) (len / (core.sizeX[i] * core.sizeY[i] * 2 * core.sizeC[i])); 
    295300 
     301      if (core.sizeZ[i] == 0) core.sizeZ[i] = 1; 
     302      if (core.sizeT[i] == 0) core.sizeT[i] = 1; 
     303      if (core.sizeC[i] == 0) core.sizeC[i] = 1; 
     304 
    296305      core.imageCount[i] = core.sizeC[i] * core.sizeZ[i] * core.sizeT[i]; 
    297306 
Note: See TracChangeset for help on using the changeset viewer.