IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26804


Ignore:
Timestamp:
Feb 6, 2010, 1:59:37 PM (16 years ago)
Author:
eugene
Message:

pixel to index is -0.5 not +0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmSubtractionEquation.c

    r26739 r26804  
    797797        stamp->status = PM_SUBTRACTION_STAMP_REJECTED;
    798798        psWarning("Rejecting stamp %d (%d,%d) because of bad equation",
    799                   index, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5));
     799                  index, (int)(stamp->x - 0.5), (int)(stamp->y - 0.5));
    800800    } else {
    801801        stamp->status = PM_SUBTRACTION_STAMP_USED;
     
    14711471        deviations->data.F32[i] = devNorm * deviation;
    14721472        psTrace("psModules.imcombine", 5, "Deviation for stamp %d (%d,%d): %f\n",
    1473                 i, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5), deviations->data.F32[i]);
     1473                i, (int)(stamp->x - 0.5), (int)(stamp->y - 0.5), deviations->data.F32[i]);
    14741474        psStringAppend(&log, "Stamp %d (%d,%d): %f\n",
    1475                        i, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5), deviations->data.F32[i]);
     1475                       i, (int)(stamp->x - 0.5), (int)(stamp->y - 0.5), deviations->data.F32[i]);
    14761476        if (!isfinite(deviations->data.F32[i])) {
    14771477            stamp->status = PM_SUBTRACTION_STAMP_REJECTED;
    14781478            psTrace("psModules.imcombine", 5,
    14791479                    "Rejecting stamp %d (%d,%d) because of non-finite deviation\n",
    1480                     i, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5));
     1480                    i, (int)(stamp->x - 0.5), (int)(stamp->y - 0.5));
    14811481            continue;
    14821482        }
Note: See TracChangeset for help on using the changeset viewer.