Changeset 35769 for trunk/psphot/src/psphotGuessModels.c
- Timestamp:
- Jul 3, 2013, 2:43:13 PM (13 years ago)
- Location:
- trunk/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130509/psphot (added) merged: 35594,35614,35630-35634,35640-35641,35650-35652,35654-35655,35659,35661,35701,35751
- Property svn:mergeinfo changed
-
trunk/psphot/src
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130509/psphot/src (added) merged: 35594,35614,35630-35634,35640,35651,35654,35659,35661,35751
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotGuessModels.c
r34404 r35769 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.
