IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26006


Ignore:
Timestamp:
Nov 2, 2009, 3:44:50 PM (17 years ago)
Author:
Paul Price
Message:

The unconvolved image should be created using the *convolved* mask,
since that defines the area that has been tested for outliers. A
satellite streak could reside in the area that's masked on the
convolved mask but unmasked on the unconvolved mask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackSetup.c

    r25824 r26006  
    4646    }
    4747
    48     // Original images
    49     options->origImages = psArrayAlloc(num);
    50     options->origMasks = psArrayAlloc(num);
    51     options->origVariances = psArrayAlloc(num);
    52     pmFPAview *view = pmFPAviewAlloc(0);
    53     for (int i = 0; i < num; i++) {
    54         {
    55             pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i);
    56             options->origImages->data[i] = pmFPAfileName(file, view, config);
    57         }
    58         {
    59             pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.MASK", i);
    60             options->origMasks->data[i] = pmFPAfileName(file, view, config);
    61         }
    62         {
    63             pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i);
    64             options->origVariances->data[i] = pmFPAfileName(file, view, config);
    65         }
    66     }
    67     psFree(view);
    68 
    6948    // Generate temporary names for convolved images
    7049    const char *tempDir = psMetadataLookupStr(NULL, recipe, "TEMP.DIR"); // Directory for temporary images
     
    10887    psFree(outputName);
    10988
     89    // Original images
     90    options->origImages = psArrayAlloc(num);
     91    options->origMasks = psArrayAlloc(num);
     92    options->origVariances = psArrayAlloc(num);
     93    pmFPAview *view = pmFPAviewAlloc(0);
     94    for (int i = 0; i < num; i++) {
     95        {
     96            pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i);
     97            options->origImages->data[i] = pmFPAfileName(file, view, config);
     98        }
     99        {
     100            // We want the convolved mask, since that defines the area that has been tested for outliers
     101            options->origMasks->data[i] = psMemIncrRefCounter(options->convMasks->data[i]);
     102        }
     103        {
     104            pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i);
     105            options->origVariances->data[i] = pmFPAfileName(file, view, config);
     106        }
     107    }
     108    psFree(view);
     109
    110110    if (!pmConfigMaskSetBits(NULL, NULL, config)) {
    111111        psError(PS_ERR_UNKNOWN, false, "Unable to determine mask value.");
Note: See TracChangeset for help on using the changeset viewer.