IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18201


Ignore:
Timestamp:
Jun 19, 2008, 11:22:48 AM (18 years ago)
Author:
Paul Price
Message:

region may be NULL.

File:
1 edited

Legend:

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

    r18181 r18201  
    528528
    529529            // Set the variance factors
    530             float xMid = 0.5 * (region->x0 + region->x1); // Average x position
    531             float yMid = 0.5 * (region->y0 + region->y1); // Average y position
     530            float xMid = 0.5 * (region ? (region->x0 + region->x1) : numCols); // Average x position
     531            float yMid = 0.5 * (region ? (region->y0 + region->y1) : numRows); // Average y position
    532532            switch (mode) {
    533533              case PM_SUBTRACTION_MODE_1: {
Note: See TracChangeset for help on using the changeset viewer.