Changeset 35632
- Timestamp:
- Jun 5, 2013, 11:25:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psphot/src/psphotGuessModels.c
r34404 r35632 29 29 } 30 30 31 int NpixTotal = 0; 32 31 33 // construct an initial PSF model for each object (new sources only) 32 34 bool psphotGuessModelsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index) { … … 86 88 87 89 psArray *cellGroups = psphotAssignSources (Cx, Cy, sources); 90 91 NpixTotal = 0; 88 92 89 93 for (int i = 0; i < cellGroups->n; i++) { … … 103 107 PS_ARRAY_ADD_SCALAR(job->args, markVal, PS_TYPE_IMAGE_MASK); 104 108 109 # if (1) 105 110 if (!psThreadJobAddPending(job)) { 106 111 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 107 112 return false; 108 113 } 109 } 114 # else 115 if (!psphotGuessModel_Threaded(job)) { 116 psError(PS_ERR_UNKNOWN, false, "Unable to guess model."); 117 return false; 118 } 119 psFree(job); 120 # endif 121 } 122 110 123 111 124 // wait for the threads to finish and manage results … … 143 156 psFree (cellGroups); 144 157 145 psLogMsg ("psphot.models", PS_LOG_WARN, "built models for %ld objects: %f sec \n", sources->n, psTimerMark ("psphot.models"));158 psLogMsg ("psphot.models", PS_LOG_WARN, "built models for %ld objects: %f sec (%d pixels)\n", sources->n, psTimerMark ("psphot.models"), NpixTotal); 146 159 return true; 147 160 } … … 240 253 241 254 pmSourceCacheModel (source, maskVal); // ALLOC x14 (!) 255 NpixTotal += source->pixels->numCols * source->pixels->numRows; 242 256 } 243 257
Note:
See TracChangeset
for help on using the changeset viewer.
