Changeset 2926


Ignore:
Timestamp:
07/02/07 14:14:56 (12 years ago)
Author:
melissa
Message:

Added support for 8 bit compressed data.

File:
1 edited

Legend:

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

    r2925 r2926  
    273273        } 
    274274      } 
    275       else if (volumeType == MAC_256_GREYS) return b;  
     275      else if (volumeType == MAC_256_GREYS) { 
     276        byte[] tmp = b; 
     277        b = new byte[core.sizeX[series] * core.sizeY[series]];  
     278        for (int y=0; y<core.sizeY[series]; y++) { 
     279          System.arraycopy(tmp, y*(core.sizeX[series] + 16), b,  
     280            y*core.sizeX[series], core.sizeX[series]); 
     281        } 
     282      } 
    276283      else if (volumeType < MAC_24_BIT) { 
    277284        throw new FormatException("Unsupported image type : " + volumeType); 
     
    622629    for (int i=0; i<bpp.length; i++) { 
    623630      setSeries(i); 
     631      if (core.sizeC[i] == 0) core.sizeC[i] = 1;  
    624632      bpp[i] = openBytes(0).length / (core.sizeX[i] * core.sizeY[i]); 
    625633    } 
Note: See TracChangeset for help on using the changeset viewer.