Changeset 35768 for trunk/psModules/src/objects/pmSourceFitPCM.c
- Timestamp:
- Jul 3, 2013, 2:37:22 PM (13 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/objects/pmSourceFitPCM.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130509/psModules (added) merged: 35594,35613,35628,35638-35639,35643-35648,35653,35657,35662,35750
- Property svn:mergeinfo changed
-
trunk/psModules/src/objects/pmSourceFitPCM.c
r35560 r35768 66 66 // set up the minimization process 67 67 psMinimization *myMin = psMinimizationAlloc (fitOptions->nIter, fitOptions->minTol, fitOptions->maxTol); 68 myMin->chisqConvergence = fitOptions->chisqConvergence; 69 myMin->gainFactorMode = fitOptions->gainFactorMode; 68 70 69 71 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32); … … 118 120 if (!fitStatus) pcm->modelConv->flags |= PM_MODEL_STATUS_NONCONVERGE; 119 121 122 if (myMin->chisqConvergence) { 123 if (myMin->lastDelta > myMin->minTol) pcm->modelConv->flags |= PM_MODEL_STATUS_WEAK_FIT; 124 } else { 125 if (myMin->rParSigma > myMin->minTol*pcm->nPar) pcm->modelConv->flags |= PM_MODEL_STATUS_WEAK_FIT; 126 } 127 120 128 // once we have fitted a model, we need to record that this model is a PCM model: 121 129 pcm->modelConv->isPCM = true; … … 145 153 bool pmSourceModelGuessPCM (pmPCMdata *pcm, pmSource *source, psImageMaskType maskVal, psImageMaskType markVal) { 146 154 147 if (!pcm->modelConv->modelGuess(pcm->modelConv, source, maskVal, markVal)) {155 if (!pcm->modelConv->modelGuess(pcm->modelConv, source, maskVal, markVal)) { 148 156 return false; 149 157 } 150 158 return true; 151 159 160 // the following was an attempt to make analytical modifications to the shape terms based on the psf 161 // this has been replaced with a more empirical approach 162 # if (0) 152 163 // generate copy of the model 153 164 // XXX we could modify the parameter values or even the model … … 196 207 197 208 return true; 209 # endif 198 210 }
Note:
See TracChangeset
for help on using the changeset viewer.
