IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29604


Ignore:
Timestamp:
Oct 29, 2010, 10:55:53 AM (16 years ago)
Author:
eugene
Message:

need to supply the mask value to psphotSetMomentsWindow (for pmSourceMoments)

File:
1 edited

Legend:

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

    r29548 r29604  
    140140
    141141    if (setWindow) {
    142         if (!psphotSetMomentsWindow(recipe, readout->analysis, sources)) {
     142        if (!psphotSetMomentsWindow(recipe, readout->analysis, sources, maskVal)) {
    143143            psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to determine Moments Window!");
    144144            psFree(detections->newSources);
     
    288288
    289289    // XXX how else could we get the window size in?
    290     if (!psphotSetMomentsWindow(recipe, readout->analysis, sources)) {
     290    if (!psphotSetMomentsWindow(recipe, readout->analysis, sources, 0)) {
    291291        psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to determine Moments Window!");
    292292        return NULL;
     
    469469// this function attempts to iteratively determine the best value for sigma of the moments weighting Gaussian
    470470// this function modifies the recipe values MOMENTS_SX_MAX, MOMENTS_SY_MAX, and PSF_CLUMP_GRID_SCALE, used by pmSourcePSFClump
    471 bool psphotSetMomentsWindow (psMetadata *recipe, psMetadata *analysis, psArray *sources) {
     471bool psphotSetMomentsWindow (psMetadata *recipe, psMetadata *analysis, psArray *sources, psImageMaskType maskVal) {
    472472
    473473    bool status;
     
    501501
    502502            // measure basic source moments (no S/N clipping on input pixels)
    503             status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, 0xffff);
     503            status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, maskVal);
    504504        }
    505505
Note: See TracChangeset for help on using the changeset viewer.