IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2009, 5:31:30 PM (17 years ago)
Author:
Paul Price
Message:

Changing 'weight' to 'variance'. Mostly propagating psModules changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/ppStack/src/ppStackMatch.c

    r21204 r21236  
    225225        }
    226226
    227         // Read image, mask, weight
     227        // Read image, mask, variance
    228228        const char *tempImage = psMetadataLookupStr(NULL, recipe, "TEMP.IMAGE"); // Suffix for image
    229229        const char *tempMask = psMetadataLookupStr(NULL, recipe, "TEMP.MASK"); // Suffix for mask
    230         const char *tempWeight = psMetadataLookupStr(NULL, recipe, "TEMP.WEIGHT"); // Suffix for weight map
    231         psString imageName = NULL, maskName = NULL, weightName = NULL; // Names for convolved images
     230        const char *tempVariance = psMetadataLookupStr(NULL, recipe, "TEMP.VARIANCE"); // Suffix for variance map
     231        psString imageName = NULL, maskName = NULL, varianceName = NULL; // Names for convolved images
    232232        psStringAppend(&imageName, "%s.%d.%s", outName, numInput, tempImage);
    233233        psStringAppend(&maskName, "%s.%d.%s", outName, numInput, tempMask);
    234         psStringAppend(&weightName, "%s.%d.%s", outName, numInput, tempWeight);
     234        psStringAppend(&varianceName, "%s.%d.%s", outName, numInput, tempVariance);
    235235
    236236        if (!readImage(&readout->image, imageName, config) || !readImage(&readout->mask, maskName, config) ||
    237             !readImage(&readout->weight, weightName, config)) {
     237            !readImage(&readout->variance, varianceName, config)) {
    238238            psError(PS_ERR_IO, false, "Unable to read previously produced image.");
    239239            psFree(imageName);
    240240            psFree(maskName);
    241             psFree(weightName);
     241            psFree(varianceName);
    242242            return false;
    243243        }
    244244        psFree(imageName);
    245245        psFree(maskName);
    246         psFree(weightName);
     246        psFree(varianceName);
    247247    } else {
    248248#endif
     
    383383                                                                                         "RENORM.STDEV"));
    384384
    385                 if (!pmReadoutWeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {
     385                if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {
    386386                    psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");
    387387                    psFree(output);
     
    451451            psFree(readout->image);
    452452            psFree(readout->mask);
    453             psFree(readout->weight);
     453            psFree(readout->variance);
    454454            readout->image  = psMemIncrRefCounter(output->image);
    455455            readout->mask   = psMemIncrRefCounter(output->mask);
    456             readout->weight = psMemIncrRefCounter(output->weight);
     456            readout->variance = psMemIncrRefCounter(output->variance);
    457457        } else {
    458458            // Fake the convolution
     
    556556                                                                                 "RENORM.STDEV"));
    557557
    558         if (!pmReadoutWeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {
     558        if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {
    559559            psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");
    560560            psFree(output);
Note: See TracChangeset for help on using the changeset viewer.