IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16832


Ignore:
Timestamp:
Mar 5, 2008, 11:48:41 AM (18 years ago)
Author:
Paul Price
Message:

Found way of setting weight image so that pixels aren't rejected as "insignificant" when fitting the PSF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmPSFEnvelope.c

    r16714 r16832  
    3232
    3333//#define TESTING                         // Enable test output
    34 #define PEAK_FLUX 1.0e3                 // Peak flux for each source
     34#define PEAK_FLUX 1.0e4                 // Peak flux for each source
    3535#define SKY_VALUE 0.0e0                 // Sky value for fake image
    36 #define WEIGHT_VAL 1.0e0                // Weighting for image
     36#define WEIGHT_VAL 1.0e-3               // Weighting for image
    3737#define PSF_STATS PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV // Statistics options for measuring PSF
    3838
     
    199199    psFree(envelope);
    200200
    201     readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "+", psScalarAlloc(1.0, PS_TYPE_F32));
     201    // XXX This seems the best way to set the weight image so that pixels aren't rejected as "insignificant"
     202    readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", readout->image);
    202203    readout->mask = psImageAlloc(numCols, numRows, PS_TYPE_MASK);
    203204    psImageInit(readout->mask, 0);
Note: See TracChangeset for help on using the changeset viewer.