IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2011, 12:50:35 AM (15 years ago)
Author:
eugene
Message:

allow single direction to be chosen automatically; other minor points

File:
1 edited

Legend:

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

    r31059 r31671  
    154154    )
    155155{
    156     if (subMode == PM_SUBTRACTION_MODE_1 || subMode == PM_SUBTRACTION_MODE_UNSURE ||
     156    if (subMode == PM_SUBTRACTION_MODE_1 ||
     157        subMode == PM_SUBTRACTION_MODE_SINGLE_AUTO ||
    157158        subMode == PM_SUBTRACTION_MODE_DUAL) {
    158159        if (!conv1->image) {
     
    173174        }
    174175    }
    175     if (subMode == PM_SUBTRACTION_MODE_2 || subMode == PM_SUBTRACTION_MODE_UNSURE ||
     176    if (subMode == PM_SUBTRACTION_MODE_2 ||
     177        subMode == PM_SUBTRACTION_MODE_SINGLE_AUTO ||
    176178        subMode == PM_SUBTRACTION_MODE_DUAL) {
    177179        if (!conv2->image) {
     
    575577        TestModes[0] = PM_SUBTRACTION_MODE_2;
    576578        break;
     579      case PM_SUBTRACTION_MODE_SINGLE_AUTO:
     580        N_TEST_MODES = 2;
     581        TestModes[0] = PM_SUBTRACTION_MODE_1;
     582        TestModes[1] = PM_SUBTRACTION_MODE_2;
     583        break;
    577584      case PM_SUBTRACTION_MODE_DUAL:
    578585        N_TEST_MODES = 3;
     
    754761            memCheck("kernels");
    755762
     763// this section was an old version of auto-choosing the direction.  the test was not as reliable as
     764// we would like; this is replaced by pmSubtractionMatchAttempt
     765# if (0)
    756766            if (subMode == PM_SUBTRACTION_MODE_UNSURE) {
    757767                pmSubtractionMode newMode = pmSubtractionBestMode(&stamps, &kernels, subMask, rej);
     
    769779                subMode = newMode;
    770780            }
     781# endif
    771782
    772783            int numRejected = -1;       // Number of rejected stamps in each iteration
Note: See TracChangeset for help on using the changeset viewer.