Changeset 7017


Ignore:
Timestamp:
09/30/10 14:35:18 (9 years ago)
Author:
aivar
Message:

Debugging: print out info on pixels with 'bad' fit: calculated lifetime more than twice expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/slim-plugin/src/main/java/loci/SLIMProcessor.java

    r6980 r7017  
    8484 
    8585    // this affects how many pixels we process at once 
    86     private static final int PIXEL_COUNT = 32;//16; 
     86    private static final int PIXEL_COUNT = 128; //32;//16; 
    8787 
    8888    // Unicode special characters 
     
    922922                break; 
    923923        } 
    924  
     924         
    925925        if (0 < dataArray.length) { 
    926926            params = dataArray[0].getParams(); 
     
    10311031            IJ.showProgress(pixelCount, m_height * m_width); 
    10321032            ChunkyPixel pixel = pixelIterator.next(); 
    1033             if (fitThisPixel(pixel.getX(), pixel.getY())) { 
     1033            if (wantFitted(pixel.getX(), pixel.getY())) { 
    10341034                curveFitData = new CurveFitData(); 
    10351035                curveFitData.setParams(params.clone()); 
     
    11121112            ChunkyPixel pixel = pixels[i]; 
    11131113            double lifetime = data[i].getParams()[1]; 
     1114 
     1115            //TODO debugging: 
     1116            if (lifetime > 2 * m_fitT1) { 
     1117                System.out.println("BAD FIT??? x " + pixel.getX() + " y " + pixel.getY() + " fitted lifetime " + lifetime); 
     1118            } 
     1119 
    11141120            //TODO BUG: 
    11151121            // With the table as is, you can get 
     
    11321138            for (int x = pixel.getX(); x < pixel.getX() + pixel.getWidth(); ++x) { 
    11331139                for (int y = pixel.getY(); y < pixel.getY() + pixel.getHeight(); ++y) { 
    1134                     if (fitThisPixel(x, y)) { 
     1140                    if (wantFitted(x, y)) { 
    11351141                        // (flip vertically) 
    11361142                        dataColorizer.setData(firstTime, x, height - y - 1 , lifetime); 
     
    11501156     * @return whether to include or ignore this pixel 
    11511157     */ 
    1152     boolean fitThisPixel(int x, int y) { 
     1158    boolean wantFitted(int x, int y) { 
    11531159        if (m_threshold <= m_grayscaleImageProcessor.getPixel(x, m_height - y - 1)) { 
    11541160            if (m_grayscaleImageProcessor.getPixel(x, m_height - y - 1) > m_maxValue) { 
Note: See TracChangeset for help on using the changeset viewer.