Changeset 1331


Ignore:
Timestamp:
08/23/06 12:52:56 (14 years ago)
Author:
melissa
Message:
  • removed unnecessary import from BaseTiffReader
  • fixed color map bug in Metamorph reader
Location:
trunk/loci/formats/in
Files:
2 edited

Legend:

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

    r1324 r1331  
    2828import java.io.IOException; 
    2929import java.nio.ByteBuffer; 
    30 import java.nio.ByteOrder; 
    3130import java.nio.ShortBuffer; 
    3231import java.util.Hashtable; 
  • trunk/loci/formats/in/MetamorphReader.java

    r1321 r1331  
    387387 
    388388      int stripsPerImage = oldOffsets.length; 
     389 
     390      int check = TiffTools.getIFDIntValue(ifds[0],  
     391        TiffTools.PHOTOMETRIC_INTERPRETATION); 
     392      if (check == TiffTools.RGB_PALETTE) { 
     393        TiffTools.putIFDValue(ifds[0], TiffTools.PHOTOMETRIC_INTERPRETATION, 
     394          TiffTools.BLACK_IS_ZERO); 
     395      } 
    389396 
    390397      emWavelength = TiffTools.getIFDLongArray(ifds[0], UIC3TAG, true); 
     
    421428        temp.put(new Integer(TiffTools.PREDICTOR), ifds[0].get( 
    422429            new Integer(TiffTools.PREDICTOR))); 
     430        temp.put(new Integer(TiffTools.COLOR_MAP),  
     431          ifds[0].get(new Integer(TiffTools.COLOR_MAP))); 
    423432 
    424433        // now we need a StripOffsets entry 
Note: See TracChangeset for help on using the changeset viewer.