- Timestamp:
- May 12, 2010, 3:54:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/psphotSourceMatch.c
r27909 r27939 1 1 # include "psphotInternal.h" 2 2 3 bool psphotMatchSourcesGenerate (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects); 3 bool psphotMatchSourcesAddMissing (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects); 4 bool psphotMatchSourcesSetIDs (psArray *objects); 4 5 5 6 psArray *psphotMatchSources (pmConfig *config, const pmFPAview *view, const char *filerule) … … 21 22 } 22 23 23 psphotMatchSourcesGenerate (config, view, filerule, objects); 24 // create sources for images where an object has been detected in the other images 25 psphotMatchSourcesAddMissing (config, view, filerule, objects); 26 27 // choose a consistent position; set common sequence values 28 psphotMatchSourcesSetIDs (objects); 24 29 25 30 return objects; … … 145 150 } 146 151 147 bool psphotMatchSources Generate(pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects) {152 bool psphotMatchSourcesAddMissing (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objects) { 148 153 149 154 bool status = false; … … 255 260 return true; 256 261 } 262 263 bool psphotMatchSourcesSetIDs (psArray *objects) { 264 265 for (int i = 0; i < objects->n; i++) { 266 pmPhotObj *obj = objects->data[i]; 267 268 // set the source->seq values 269 for (int j = 0; j < obj->sources->n; j++) { 270 pmSource *src = obj->sources->data[j]; 271 src->seq = i; 272 } 273 } 274 return true; 275 }
Note:
See TracChangeset
for help on using the changeset viewer.
