Changeset 4216 for trunk/psphot/src/source_moments.c
- Timestamp:
- Jun 12, 2005, 3:49:21 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/source_moments.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/source_moments.c
r4215 r4216 17 17 sources->n = 0; 18 18 19 // this should use ROBUST not SAMPLE median, but it is broken20 19 for (int i = 0; i < peaks->n; i++) { 21 // provide the user arguments as metadata?22 psSource *source = pmSourceDefinePixels (imdata, (psPeak *)peaks->data[i], OUTER);23 if (source == NULL) continue;20 // create a new source, add peak 21 psSource *source = pmSourceAlloc(); 22 source->peak = (psPeak *)peaks->data[i]; 24 23 24 // allocate image, noise, mask arrays for each peak (square of radius OUTER) 25 pmSourceDefinePixels (source, imdata, source->peak->x, source->peak->y, OUTER); 26 27 // this should use ROBUST not SAMPLE median, but it is broken 25 28 pmSourceLocalSky_EAM (source, PS_STAT_SAMPLE_MEDIAN, INNER); 26 29 pmSourceMoments (source, RADIUS);
Note:
See TracChangeset
for help on using the changeset viewer.
