IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 14, 2010, 11:10:18 AM (16 years ago)
Author:
eugene
Message:

adding mask value to pmPSFEnvelope (for pmSourceMoments)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppStack/src/ppStackPSF.c

    r25480 r26606  
    1414                  const psArray *psfs, const psVector *inputMask)
    1515{
     16    bool mkdo = false;
     17
    1618#ifndef TESTING
    1719    // Get the recipe values
     
    2426    int psfOrder = psMetadataLookupS32(NULL, recipe, "PSF.ORDER"); // Spatial order for PSF
    2527
     28    psString maskValStr = psMetadataLookupStr(&mdok, recipe, "MASK.VAL"); // Name of bits to mask going in
     29    if (!mdok || !maskValStr) {
     30        psError(PS_ERR_UNKNOWN, false, "Unable to find MASK.VAL in recipe");
     31        return false;
     32    }
     33    psImageMaskType maskVal = pmConfigMaskGet(maskValStr, config); // Bits to mask
     34
    2635    for (int i = 0; i < psfs->n; i++) {
    2736        if (inputMask->data.U8[i]) {
     
    3241
    3342    // Solve for the target PSF
    34     pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel,
    35                                psfOrder, psfOrder);
     43    pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, psfOrder, psfOrder, maskVal);
    3644    if (!psf) {
    3745        psError(PS_ERR_UNKNOWN, false, "Unable to determine output PSF.");
Note: See TracChangeset for help on using the changeset viewer.