Changeset 2389


Ignore:
Timestamp:
03/06/07 11:55:04 (13 years ago)
Author:
melissa
Message:

Fixed issue with sizeC > 4.

File:
1 edited

Legend:

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

    r2380 r2389  
    9696    if (!id.equals(currentId)) initFile(id); 
    9797    numImages = dims[series][2] * dims[series][3]; 
    98     return numImages; 
     98    return numImages * (isRGB(id) ? 1 : dims[series][4]);  
    9999  } 
    100100 
     
    102102  public boolean isRGB(String id) throws FormatException, IOException { 
    103103    if (!id.equals(currentId)) initFile(id); 
    104     return dims[series][4] > 1; 
     104    return dims[series][4] > 1 && dims[series][4] < 4; 
    105105  } 
    106106 
     
    183183  { 
    184184    BufferedImage b = ImageTools.makeImage(openBytes(id, no), sizeX[series],  
    185       sizeY[series], sizeC[series], false, bpp / 8, littleEndian,  
     185      sizeY[series], isRGB(id) ? sizeC[series] : 1, false, bpp / 8, littleEndian,  
    186186      validBits[series]); 
    187187    updateMinMax(b, no); 
Note: See TracChangeset for help on using the changeset viewer.