- Timestamp:
- Sep 24, 2009, 4:02:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/psModules/src/objects/models/pmModel_PGAUSS.c
r25521 r25563 50 50 static float *paramsMaxUse = NULL; 51 51 static float betaUse[] = { 1000, 3e6, 5, 5, 2.0, 2.0, 0.5 }; 52 53 static bool limitsApply = true; // Apply limits? 52 54 53 55 // the model is a function of the pixel coordinate (pixcoord[0,1] = x,y) … … 92 94 bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta) 93 95 { 96 if (!limitsApply) { 97 return true; 98 } 94 99 psAssert(nParam >= 0 && nParam <= PM_PAR_7, "Parameter index is out of bounds"); 95 100 … … 403 408 } 404 409 410 405 411 void PM_MODEL_SET_LIMITS(pmModelLimitsType type) 406 412 { … … 409 415 paramsMinUse = NULL; 410 416 paramsMaxUse = NULL; 417 limitsApply = true; 418 break; 419 case PM_MODEL_LIMITS_IGNORE: 420 paramsMinUse = NULL; 421 paramsMaxUse = NULL; 422 limitsApply = false; 411 423 case PM_MODEL_LIMITS_LAX: 412 424 paramsMinUse = paramsMinLax; 413 425 paramsMaxUse = paramsMaxLax; 426 limitsApply = true; 414 427 break; 415 428 case PM_MODEL_LIMITS_STRICT: 416 429 paramsMinUse = paramsMinStrict; 417 430 paramsMaxUse = paramsMaxStrict; 431 limitsApply = true; 418 432 break; 419 433 default:
Note:
See TracChangeset
for help on using the changeset viewer.
