Changeset 23682
- Timestamp:
- Apr 2, 2009, 12:27:36 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/pswarp/src/pswarpLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/pswarp/src/pswarpLoop.c
r23679 r23682 290 290 pmFPA *outFPA = outChip->parent; ///< Output FP 291 291 292 if ( pswarpPixelsLit(output, stats, config)) {292 if (!pswarpPixelsLit(output, stats, config)) { 293 293 psError(PS_ERR_UNKNOWN, false, "Unable to calculate pixel regions."); 294 294 psFree(cells); … … 299 299 // Set variance factor 300 300 { 301 float varFactor = psMetadataLookupF32(NULL, output->analysis, PSWARP_ANALYSIS_VARFACTOR); 302 psAssert(isfinite(varFactor), "Should be something here."); 303 long goodPix = psMetadataLookupS64(NULL, output->analysis, PSWARP_ANALYSIS_GOODPIX); 304 psAssert(goodPix > 0, "Should be something here."); 301 bool mdok; // Status of MD lookup 302 float varFactor = psMetadataLookupF32(&mdok, output->analysis, PSWARP_ANALYSIS_VARFACTOR); 303 long goodPix = psMetadataLookupS64(&mdok, output->analysis, PSWARP_ANALYSIS_GOODPIX); 305 304 varFactor /= goodPix; 306 305
Note:
See TracChangeset
for help on using the changeset viewer.
