Changeset 4229


Ignore:
Timestamp:
07/23/08 10:41:55 (12 years ago)
Author:
curtis
Message:

Remove some obsolete code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/slim/SlimPlotter.java

    r4226 r4229  
    123123  private boolean[] cVisible; 
    124124  private int maxPeak; 
    125   private int[] maxIntensity; 
    126125 
    127126  private float maxVal; 
     
    210209    progress.setMillisToDecideToPopup(0); 
    211210 
    212     int maxChan = -1; 
    213211    try { 
    214212      // check for required libraries 
     
    398396      progress.setNote("Constructing images"); 
    399397      values = new int[channels][height][width][timeBins]; 
    400       float[][][] pix = new float[channels][1][width * height]; 
    401       FieldImpl field = new FieldImpl(types.cxyvFunc, types.cSet); 
    402       maxIntensity = new int[channels]; 
    403398      for (int c=0; c<channels; c++) { 
    404399        int oc = timeBins * width * height * c; 
     
    407402          for (int w=0; w<width; w++) { 
    408403            int ow = timeBins * w; 
    409             int sum = 0; 
    410404            for (int t=0; t<timeBins; t++) { 
    411405              int ndx = 2 * (oc + oh + ow + t); 
    412406              int val = DataTools.bytesToInt(data, ndx, 2, true); 
    413407              values[c][h][w][t] = val; 
    414               sum += val; 
    415408            } 
    416             if (sum > maxIntensity[c]) maxIntensity[c] = sum; 
    417             pix[c][0][width * h + w] = sum; 
    418409          } 
    419410          setProgress(progress, 780 + 140 * 
    420411            (height * c + h + 1) / (channels * height)); // estimate: 78% -> 92% 
    421         } 
    422         FlatField ff = new FlatField(types.xyvFunc, types.xySet); 
    423         ff.setSamples(pix[c], false); 
    424         field.setSample(c, ff); 
    425       } 
    426  
    427       // compute channel with brightest intensity 
    428       maxChan = 0; 
    429       int globalMax = 0; 
    430       for (int c=0; c<channels; c++) { 
    431         if (maxIntensity[c] > globalMax) { 
    432           globalMax = maxIntensity[c]; 
    433           maxChan = c; 
    434412        } 
    435413      } 
Note: See TracChangeset for help on using the changeset viewer.