IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19905


Ignore:
Timestamp:
Oct 6, 2008, 3:03:40 AM (18 years ago)
Author:
eugene
Message:

comments to clariy pixWeight measurement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r18554 r19905  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-07-15 20:25:00 $
     5 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-10-06 13:03:40 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    230230    }
    231231
    232     // measure the weight of included pixels
    233     // XXX is this supposed to use the weight or the flux?
     232    // measure the contribution of included pixels
    234233    if (mode & PM_SOURCE_PHOT_WEIGHT) {
    235234        pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal);
     
    379378    NY = image->numRows;
    380379
    381     // measure modelSum and validSum
    382     // XXX this does not work for sources near the edge: we need to measure for
    383     // a full square region
     380    // measure modelSum and validSum.  this function is applied to a sources' subimage.  the
     381    // value of DX is chosen (see above) to cover the full possible size of the subimage if it
     382    // were not by an edge; ie, if the source is cut in half by an image edge, we correctly
     383    // count the virtual pixels off the edge in normalizing the value of the pixWeight
    384384    for (int ix = -DX; ix < DX + 1; ix++) {
    385385        int mx = ix + dX;
Note: See TracChangeset for help on using the changeset viewer.