Changeset 15361
- Timestamp:
- 04/18/13 10:18:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratecontrol.cc
r15248 r15361 196 196 197 197 const float dif = fabs(sdata.fBoardRate[i]-mb)/db; 198 if (dif> 5)198 if (dif>3) 199 199 { 200 200 if (fVerbose) … … 221 221 222 222 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; 224 224 // * (dif-5)/dif 225 225 Step(i*4+j, step); … … 227 227 } 228 228 229 // For pixels below the me adian correct also back to median+3*deviation229 // For pixels below the median correct also back to median+3*deviation 230 230 if (sdata.fPatchRate[i*4+j]<mp) 231 231 { 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; 233 233 Step(i*4+j, step); 234 234 continue; … … 481 481 //fThresholdMin = max(uint16_t(36.0833*pow(avg, 0.638393)+184.037), fThresholdReference); 482 482 //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); 484 487 fThresholds.assign(160, fThresholdMin); 485 488 … … 493 496 avg2 += vec[i]; 494 497 495 if (vec[i]-avg> 6*avg_dev)498 if (vec[i]-avg>3.5*avg_dev) 496 499 { 497 500 fThresholds[i] = max(uint16_t(40.5*pow(vec[i], 0.642)+164), fThresholdReference);
Note:
See TracChangeset
for help on using the changeset viewer.