Changeset 15361


Ignore:
Timestamp:
04/18/13 10:18:44 (12 years ago)
Author:
tbretz
Message:
Implemented the latest results from the ratescan fits and strengthened the limits to take action for single patches.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ratecontrol.cc

    r15248 r15361  
    196196
    197197            const float dif = fabs(sdata.fBoardRate[i]-mb)/db;
    198             if (dif>5)
     198            if (dif>3)
    199199            {
    200200                if (fVerbose)
     
    221221
    222222
    223                     const float step = (log10(sdata.fPatchRate[i*4+j])-log10(mp+5*dp))/0.039;
     223                    const float step = (log10(sdata.fPatchRate[i*4+j])-log10(mp+3.5*dp))/0.039;
    224224                    //  * (dif-5)/dif
    225225                    Step(i*4+j, step);
     
    227227                }
    228228
    229                 // For pixels below the meadian correct also back to median+3*deviation
     229                // For pixels below the median correct also back to median+3*deviation
    230230                if (sdata.fPatchRate[i*4+j]<mp)
    231231                {
    232                     const float step = (log10(sdata.fPatchRate[i*4+j])-log10(mp+3*dp))/0.039;
     232                    const float step = (log10(sdata.fPatchRate[i*4+j])-log10(mp+3.5*dp))/0.039;
    233233                    Step(i*4+j, step);
    234234                    continue;
     
    481481        //fThresholdMin = max(uint16_t(36.0833*pow(avg, 0.638393)+184.037), fThresholdReference);
    482482        //fThresholdMin = max(uint16_t(42.4*pow(avg, 0.642)+182), fThresholdReference);
    483         fThresholdMin = max(uint16_t(41.6*pow(avg, 0.642)+175), fThresholdReference);
     483        //fThresholdMin = max(uint16_t(41.6*pow(avg+1, 0.642)+175), fThresholdReference);
     484        //fThresholdMin = max(uint16_t(42.3*pow(avg, 0.655)+190), fThresholdReference);
     485        fThresholdMin = max(uint16_t(46.6*pow(avg, 0.627)+187), fThresholdReference);
     486        //fThresholdMin = max(uint16_t(41.6*pow(avg, 0.642)+175), fThresholdReference);
    484487        fThresholds.assign(160, fThresholdMin);
    485488
     
    493496            avg2 += vec[i];
    494497
    495             if (vec[i]-avg>6*avg_dev)
     498            if (vec[i]-avg>3.5*avg_dev)
    496499            {
    497500                fThresholds[i] = max(uint16_t(40.5*pow(vec[i], 0.642)+164), fThresholdReference);
Note: See TracChangeset for help on using the changeset viewer.