Changeset 2879


Ignore:
Timestamp:
06/18/07 08:54:01 (12 years ago)
Author:
melissa
Message:

Don't assume sizeC == 1 in new ND2 files.

File:
1 edited

Legend:

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

    r2878 r2879  
    261261            // found pixel data 
    262262            int ndx = Integer.parseInt(s.substring(13, s.indexOf("!"))); 
     263            if (core.sizeC[0] == 0) { 
     264              core.sizeC[0] = len / (core.sizeX[0] * core.sizeY[0] * 
     265                FormatTools.getBytesPerPixel(core.pixelType[0])); 
     266            } 
    263267            offsets[ndx] = in.getFilePointer() - len + s.indexOf("!") + 9;  
    264268          } 
Note: See TracChangeset for help on using the changeset viewer.