IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23682


Ignore:
Timestamp:
Apr 2, 2009, 12:27:36 PM (17 years ago)
Author:
Paul Price
Message:

Fixing logical error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/pswarp/src/pswarpLoop.c

    r23679 r23682  
    290290    pmFPA *outFPA = outChip->parent;    ///< Output FP
    291291
    292     if (pswarpPixelsLit(output, stats, config)) {
     292    if (!pswarpPixelsLit(output, stats, config)) {
    293293        psError(PS_ERR_UNKNOWN, false, "Unable to calculate pixel regions.");
    294294        psFree(cells);
     
    299299    // Set variance factor
    300300    {
    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);
    305304        varFactor /= goodPix;
    306305
Note: See TracChangeset for help on using the changeset viewer.