Changeset 3460


Ignore:
Timestamp:
12/11/07 07:53:25 (12 years ago)
Author:
melissa
Message:

Fixed bug with floating point thumbnails.

Location:
trunk/loci/plugins
Files:
3 edited

Legend:

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

    r3431 r3460  
    146146    try { 
    147147      r.setMetadataFiltered(true); 
     148      r.setNormalized(true); 
    148149      r.setId(id); 
    149150 
  • trunk/loci/plugins/ImporterOptions.java

    r3459 r3460  
    617617        try { 
    618618          BufferedImage img = r.openThumbImage(ndx); 
    619           if (isAutoscale()) img = ImageTools.autoscale(img); 
     619          if (isAutoscale() && r.getPixelType() != FormatTools.FLOAT) { 
     620            img = ImageTools.autoscale(img); 
     621          } 
    620622          ImageIcon icon = new ImageIcon(img); 
    621623          p[i].removeAll(); 
  • trunk/loci/plugins/ThumbLoader.java

    r3448 r3460  
    3535import javax.swing.ImageIcon; 
    3636import loci.formats.FormatException; 
     37import loci.formats.FormatTools; 
    3738import loci.formats.IFormatReader; 
    3839import loci.formats.ImageTools; 
     
    118119        int ndx = ir.getIndex(z, 0, t); 
    119120        BufferedImage thumb = ir.openThumbImage(ndx); 
    120         if (scale) thumb = ImageTools.autoscale(thumb); 
     121        if (scale && ir.getPixelType() != FormatTools.FLOAT) { 
     122          thumb = ImageTools.autoscale(thumb); 
     123        } 
    121124        ImageIcon icon = new ImageIcon(thumb); 
    122125        p[ii].removeAll(); 
Note: See TracChangeset for help on using the changeset viewer.