Changeset 3203


Ignore:
Timestamp:
10/01/07 11:46:31 (12 years ago)
Author:
melissa
Message:

Don't autoscale images in the data browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser/CustomWindow.java

    r2766 r3203  
    342342      index--; 
    343343      ImageProcessor clone = db.manager.getSlice(index).duplicate(); 
     344      double bits = 255; 
     345      if (clone instanceof ShortProcessor) bits = 65535; 
     346      else if (clone instanceof FloatProcessor) bits = Float.MAX_VALUE - 1; 
     347 
     348      clone.setMinAndMax(0, bits); 
    344349      imp.setProcessor(patternTitle, clone); 
    345350 
Note: See TracChangeset for help on using the changeset viewer.