Changeset 4282


Ignore:
Timestamp:
08/04/08 11:36:23 (12 years ago)
Author:
melissa
Message:

Don't assume that every plane has the same lookup table.

File:
1 edited

Legend:

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

    r4205 r4282  
    8383 
    8484  private Vector seriesNames; 
     85  private int lastPlane = 0; 
    8586 
    8687  // -- Constructor -- 
     
    127128  public byte[][] get8BitLookupTable() throws FormatException, IOException { 
    128129    FormatTools.assertId(currentId, true, 1); 
    129     tiff.setId((String) files[series].get(0)); 
     130    tiff.setId((String) files[series].get(lastPlane)); 
    130131    return tiff.get8BitLookupTable(); 
    131132  } 
     
    134135  public short[][] get16BitLookupTable() throws FormatException, IOException { 
    135136    FormatTools.assertId(currentId, true, 1); 
    136     tiff.setId((String) files[series].get(0)); 
     137    tiff.setId((String) files[series].get(lastPlane)); 
    137138    return tiff.get16BitLookupTable(); 
    138139  } 
     
    151152    FormatTools.assertId(currentId, true, 1); 
    152153    FormatTools.checkPlaneNumber(this, no); 
     154    lastPlane = no; 
    153155    tiff.setId((String) files[series].get(no)); 
    154156    return tiff.openBytes(0, buf, x, y, w, h); 
     
    181183      seriesNames = null; 
    182184      numSeries = 0; 
     185      lastPlane = 0; 
    183186    } 
    184187  } 
Note: See TracChangeset for help on using the changeset viewer.