IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17364


Ignore:
Timestamp:
Apr 7, 2008, 8:25:22 AM (18 years ago)
Author:
Paul Price
Message:

Since we return "bestIndex+1", the magic number for "couldn't find a fit" isn't -1, but 0.

File:
1 edited

Legend:

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

    r17300 r17364  
    627627        int width2 = subtractionOrderWidth(stamp->image2, bg2, stamps->footprint, &models, &modelSums);
    628628
    629         if (width1 == -1 || width2 == -2) {
     629        if (width1 == 0 || width2 == 0) {
    630630            ratios->data.F32[i] = NAN;
    631631            mask->data.PS_TYPE_MASK_DATA[i] = 0xff;
Note: See TracChangeset for help on using the changeset viewer.