IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2005, 3:49:21 PM (21 years ago)
Author:
eugene
Message:

rework with masks and noise array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/source_moments.c

    r4215 r4216  
    1717    sources->n = 0;
    1818
    19     // this should use ROBUST not SAMPLE median, but it is broken
    2019    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];
    2423
     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
    2528        pmSourceLocalSky_EAM (source, PS_STAT_SAMPLE_MEDIAN, INNER);
    2629        pmSourceMoments (source, RADIUS);
Note: See TracChangeset for help on using the changeset viewer.