IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 11, 2005, 5:43:47 AM (21 years ago)
Author:
eugene
Message:

adding mask & noise images

File:
1 edited

Legend:

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

    r4129 r4215  
    11# include "psphot.h"
    22
    3 psArray *source_moments (psImage *image, psMetadata *config, psArray *allpeaks)
     3psArray *source_moments (psImageData *imdata, psMetadata *config, psArray *allpeaks)
    44{
    55    bool     status  = false;
     
    88
    99    psTimerStart ("psphot");
    10 
    11     // reduce the initial peaks to a subset of the better peaks
    12     // is this the appropriate place for this culling?
    13 
    14     float XBORDER  = psMetadataLookupF32 (&status, config, "XBORDER");
    15     float YBORDER  = psMetadataLookupF32 (&status, config, "YBORDER");
    16     float SATURATE = psMetadataLookupF32 (&status, config, "SATURATE");
    17 
    18     psRegion *keep = psRegionAlloc (XBORDER, -XBORDER, YBORDER, -YBORDER);
    19     keep           = psRegionForImage (keep, image, keep);
    20     // I need to exclude the saturated objects here, but include them again later...?
    21     peaks          = pmPeaksSubset (allpeaks, 100000, keep);
    2210
    2311    // determine properties (sky, moments) of initial sources
     
    3220    for (int i = 0; i < peaks->n; i++) {
    3321        // provide the user arguments as metadata?
    34         psSource *source  = pmSourceLocalSky (image, (psPeak *)peaks->data[i], PS_STAT_SAMPLE_MEDIAN, INNER, OUTER);
     22        psSource *source  = pmSourceDefinePixels (imdata, (psPeak *)peaks->data[i], OUTER);
    3523        if (source == NULL) continue;
    36         pmSourceMaskRegion (source, keep);
     24
     25        pmSourceLocalSky_EAM (source, PS_STAT_SAMPLE_MEDIAN, INNER);
    3726        pmSourceMoments (source, RADIUS);
    3827        psArrayAdd (sources, 100, source);
Note: See TracChangeset for help on using the changeset viewer.