Changeset 1816


Ignore:
Timestamp:
11/17/06 11:35:53 (13 years ago)
Author:
melissa
Message:

Don't normalize floating point data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r1815 r1816  
    172172      if (stitchFiles) r = new FileStitcher(r); 
    173173 
    174       if (!ignoreTables) { 
    175         if (r.isRGB(id) && r.getPixelType(id) >= FormatReader.INT16) { 
    176 //        Double min = r.getChannelGlobalMinimum(id, 0); 
    177 //        Double max = r.getChannelGlobalMaximum(id, 0); 
    178           Double min = null, max = null; 
    179           if (min == null || max == null) { 
    180             doRGBMerge = true; 
    181             r = new ChannelSeparator(r); 
    182           } 
    183         } 
    184       } 
    185174      r.setColorTableIgnored(ignoreTables); 
    186175 
     
    448437            else if (pixels instanceof float[]) { 
    449438              float[] f = (float[]) pixels; 
    450               f = DataTools.normalizeFloats(f); 
    451439              if (f.length > w*h) { 
    452440                float[] tmp = f; 
     
    482470          } 
    483471          if (ip == null) { 
    484             if (pixels instanceof float[]) { 
    485               pixels = (Object) DataTools.normalizeFloats((float[]) pixels); 
    486             } 
    487472            ip = new ColorProcessor(w, h, 
    488473              ImageTools.make24Bits(pixels, w, h, r.isInterleaved(id))); 
Note: See TracChangeset for help on using the changeset viewer.