IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3813 for trunk/pois/src/pois.c


Ignore:
Timestamp:
Apr 29, 2005, 10:53:49 AM (21 years ago)
Author:
rhl
Message:

Make poisRejectStamps return a list of rejected stamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/src/pois.c

    r3797 r3813  
    114114
    115115    // Iterate for a good solution
    116     bool badStamps = true;              // Do we have bad stamps, such that we need to continue to iterate?
     116    psList *badStamps = NULL;           // Do we have bad stamps, such that we need to continue to iterate?
    117117    for (int iterNum = 0; iterNum < config->numIter && badStamps; iterNum++) {
    118118        psTrace("pois", 1, "Iteration %d...\n", iterNum);
    119119
     120        psFree(badStamps);              // left over from last iteration
     121       
    120122        // Find stamps
    121123        stamps = poisFindStamps(stamps, refImage, mask, config);
     
    175177    // If there was rejection on the last round, re-solve the equation using only the good stamps
    176178    if (badStamps) {
     179        psFree(badStamps);
    177180        solution = poisSolveEquation(solution, stamps, config);
    178181    }
Note: See TracChangeset for help on using the changeset viewer.