Changeset 21236 for branches/pap_branch_20090128/ppStack/src/ppStackMatch.c
- Timestamp:
- Jan 29, 2009, 5:31:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/ppStack/src/ppStackMatch.c
r21204 r21236 225 225 } 226 226 227 // Read image, mask, weight227 // Read image, mask, variance 228 228 const char *tempImage = psMetadataLookupStr(NULL, recipe, "TEMP.IMAGE"); // Suffix for image 229 229 const char *tempMask = psMetadataLookupStr(NULL, recipe, "TEMP.MASK"); // Suffix for mask 230 const char *temp Weight = psMetadataLookupStr(NULL, recipe, "TEMP.WEIGHT"); // Suffix for weightmap231 psString imageName = NULL, maskName = NULL, weightName = NULL; // Names for convolved images230 const char *tempVariance = psMetadataLookupStr(NULL, recipe, "TEMP.VARIANCE"); // Suffix for variance map 231 psString imageName = NULL, maskName = NULL, varianceName = NULL; // Names for convolved images 232 232 psStringAppend(&imageName, "%s.%d.%s", outName, numInput, tempImage); 233 233 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); 235 235 236 236 if (!readImage(&readout->image, imageName, config) || !readImage(&readout->mask, maskName, config) || 237 !readImage(&readout-> weight, weightName, config)) {237 !readImage(&readout->variance, varianceName, config)) { 238 238 psError(PS_ERR_IO, false, "Unable to read previously produced image."); 239 239 psFree(imageName); 240 240 psFree(maskName); 241 psFree( weightName);241 psFree(varianceName); 242 242 return false; 243 243 } 244 244 psFree(imageName); 245 245 psFree(maskName); 246 psFree( weightName);246 psFree(varianceName); 247 247 } else { 248 248 #endif … … 383 383 "RENORM.STDEV")); 384 384 385 if (!pmReadout WeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {385 if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) { 386 386 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances."); 387 387 psFree(output); … … 451 451 psFree(readout->image); 452 452 psFree(readout->mask); 453 psFree(readout-> weight);453 psFree(readout->variance); 454 454 readout->image = psMemIncrRefCounter(output->image); 455 455 readout->mask = psMemIncrRefCounter(output->mask); 456 readout-> weight = psMemIncrRefCounter(output->weight);456 readout->variance = psMemIncrRefCounter(output->variance); 457 457 } else { 458 458 // Fake the convolution … … 556 556 "RENORM.STDEV")); 557 557 558 if (!pmReadout WeightRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) {558 if (!pmReadoutVarianceRenormPixels(readout, maskBad, renormMean, renormStdev, rng)) { 559 559 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances."); 560 560 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
