Changeset 6556


Ignore:
Timestamp:
06/22/10 17:10:09 (9 years ago)
Author:
curtis
Message:

Fix problem with signed LUT indices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/ImageTools.java

    r6141 r6556  
    552552    for (int i=0; i<b.length/2; i++) { 
    553553      for (int j=0; j<lut.length; j++) { 
    554         rtn[j][i] = lut[j][DataTools.bytesToShort(b, i*2, 2, le)]; 
     554        int index = DataTools.bytesToInt(b, i*2, 2, le); 
     555        rtn[j][i] = lut[j][index]; 
    555556      } 
    556557    } 
Note: See TracChangeset for help on using the changeset viewer.