IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28302


Ignore:
Timestamp:
Jun 10, 2010, 4:26:15 PM (16 years ago)
Author:
Paul Price
Message:

Don't die if the mean variance can't be measured, but reject the image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackTarget.c

    r28301 r28302  
    176176                bg->options = PS_STAT_SAMPLE_MEAN;
    177177                if (!psImageStats(bg, variance, mask, maskVal)) {
    178                     psError(PPSTACK_ERR_DATA, false, "Unable to measure mean variance for image %d", i);
    179                     psFree(rng);
    180                     psFree(bg);
    181                     return NULL;
     178                    psWarning("Unable to measure mean variance for image %d --- rejecting.", i);
     179                    psErrorStackPrint(stderr, "Unable to measure mean variance for image %d", i);
     180                    options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_PSF;
     181                    goto DONE;
    182182                } else {
    183183                    // Desperate retry
     
    200200        }
    201201
     202    DONE:
     203        psFree(bg);
    202204        if (!ppStackFilesIterateUp(config)) {
    203205            psFree(rng);
Note: See TracChangeset for help on using the changeset viewer.