Changeset 3418


Ignore:
Timestamp:
11/27/07 13:51:49 (12 years ago)
Author:
curtis
Message:

Add support for optional bioformats.sdt.intensity system property and
ImageJ preference for toggling SDT reader's intensity merging behavior.

Location:
trunk/loci
Files:
2 edited

Legend:

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

    r3417 r3418  
    4040public class SDTReader extends FormatReader { 
    4141 
     42  // -- Constants -- 
     43 
     44  /** 
     45   * System property to check for whether to merge 
     46   * SDT lifetime bins into single intensity image planes. 
     47   */ 
     48  public static final String INTENSITY_PROPERTY = "bioformats.sdt.intensity"; 
     49 
    4250  // -- Fields -- 
    4351 
     
    6068 
    6169  /** Constructs a new SDT reader. */ 
    62   public SDTReader() { super("SPCImage Data", "sdt"); } 
     70  public SDTReader() { 
     71    super("SPCImage Data", "sdt"); 
     72    try { 
     73      intensity = !"false".equalsIgnoreCase( 
     74        System.getProperty(INTENSITY_PROPERTY)); 
     75    } 
     76    catch (SecurityException exc) { } 
     77  } 
    6378 
    6479  // -- SDTReader API methods -- 
  • trunk/loci/plugins/ImporterOptions.java

    r3412 r3418  
    3737import javax.swing.ImageIcon; 
    3838import loci.formats.*; 
     39import loci.formats.in.SDTReader; 
    3940 
    4041/** 
     
    248249    seriesString = Prefs.get(PREF_SERIES, "0"); 
    249250    windowless = Prefs.get(PREF_WINDOWLESS, false); 
     251 
     252    // set SDT intensity property, if available 
     253    String sdtIntensity = Prefs.get(SDTReader.INTENSITY_PROPERTY, null); 
     254    if (sdtIntensity != null) { 
     255      System.setProperty(SDTReader.INTENSITY_PROPERTY, sdtIntensity); 
     256    } 
    250257  } 
    251258 
Note: See TracChangeset for help on using the changeset viewer.