Changeset 2390


Ignore:
Timestamp:
03/06/07 12:20:14 (13 years ago)
Author:
melissa
Message:

Fixed problem with ND2 BufferedImage deconstruction.

Location:
trunk/loci/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ImageTools.java

    r2388 r2390  
    704704      DataBuffer buffer = r.getDataBuffer(); 
    705705      if (buffer instanceof DataBufferUShort) { 
    706         SampleModel model = r.getSampleModel(); 
    707         if (model instanceof BandedSampleModel) { 
    708           // return shorts directly, with no copy 
    709           return ((DataBufferUShort) buffer).getBankData(); 
    710         } 
     706        return ((DataBufferUShort) buffer).getBankData(); 
    711707      } 
    712708    } 
  • trunk/loci/formats/in/ND2Reader.java

    r2323 r2390  
    252252    } 
    253253 
    254     ColorModel cm = ImageTools.makeColorModel(sizeC[0], dataType, validBits); 
    255     BufferedImage bi = ImageTools.makeBuffered(img); 
    256     updateMinMax(bi, no); 
    257     return bi; 
     254    updateMinMax(img, no); 
     255    return img; 
    258256  } 
    259257 
Note: See TracChangeset for help on using the changeset viewer.