Changeset 3199


Ignore:
Timestamp:
09/28/07 11:18:35 (12 years ago)
Author:
curtis
Message:

Add hack to work around negative SizeZ/C/T values.

File:
1 edited

Legend:

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

    r3197 r3199  
    269269        core.sizeC[i] = Integer.parseInt(pixels[i].getAttribute("SizeC")); 
    270270        core.sizeT[i] = Integer.parseInt(pixels[i].getAttribute("SizeT")); 
     271 
     272        // HACK: correct for erroneous negative size values 
     273        if (core.sizeZ[i] < 1) core.sizeZ[i] = 1; 
     274        if (core.sizeC[i] < 1) core.sizeC[i] = 1; 
     275        if (core.sizeT[i] < 1) core.sizeT[i] = 1; 
     276 
    271277        core.imageCount[i] = core.sizeZ[i] * core.sizeC[i] * core.sizeT[i]; 
    272278        int sc = core.sizeC[i]; 
Note: See TracChangeset for help on using the changeset viewer.