- Timestamp:
- Mar 19, 2013, 2:50:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/psphot/src/psphotSourceFits.c
r34258 r35322 457 457 458 458 // use the source moments, etc to guess basic model parameters 459 pmModel *model = pmSourceModelGuess (source, modelType );459 pmModel *model = pmSourceModelGuess (source, modelType, maskVal, markVal); 460 460 if (!model) { 461 461 psTrace ("psphot", 5, "failed to generate a model for source: moments: %f %f\n", source->moments->Mxx, source->moments->Myy); … … 625 625 model->params->data.F32[PM_PAR_7] = 0.5/indexGuess[i]; 626 626 627 if (!model->modelGuess(model, source )) {627 if (!model->modelGuess(model, source, maskVal, markVal)) { 628 628 model->flags |= PM_MODEL_STATUS_BADARGS; 629 629 return false; … … 648 648 model->flags = PM_MODEL_STATUS_NONE; // do not attempt to handle failures here, let the next iteration deal with it 649 649 model->params->data.F32[PM_PAR_7] = 0.5/indexGuess[iMin]; 650 model->modelGuess(model, source );650 model->modelGuess(model, source, maskVal, markVal); 651 651 652 652 return true; … … 677 677 model->params->data.F32[PM_PAR_7] = indexGuess[i]; 678 678 679 if (!model->modelGuess(model, source )) {679 if (!model->modelGuess(model, source, maskVal, markVal)) { 680 680 model->flags |= PM_MODEL_STATUS_BADARGS; 681 681 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
