IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14719


Ignore:
Timestamp:
Aug 31, 2007, 9:01:03 AM (19 years ago)
Author:
Paul Price
Message:

Adding error checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionParams.c

    r14709 r14719  
    307307        bestChi2 /= numPixels;
    308308
     309        if (bestIndex == -1) {
     310            psError(PS_ERR_UNKNOWN, false, "Unable to find best kernel component in round %d.", iter);
     311            psFree(inputs);
     312            psFree(sumC);
     313            psFree(sumCC);
     314            psFree(ranking);
     315            psFree(kernels);
     316            return NULL;
     317        }
     318
    309319        // And the winner is....
    310320        ranking->data.S32[bestIndex] = iter;
Note: See TracChangeset for help on using the changeset viewer.