IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14519


Ignore:
Timestamp:
Aug 15, 2007, 4:07:20 PM (19 years ago)
Author:
Paul Price
Message:

If weight and input are both NULL, default to the reference.

File:
1 edited

Legend:

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

    r14514 r14519  
    260260    if (!weight) {
    261261        // Use the input as a rough approximation to the variance map, and HOPE that it's positive.
    262         weight = input;
     262        weight = input ? input : reference;
    263263    }
    264264
     
    297297        stamp->weight = psKernelAllocFromImage(wtSub, size, size);
    298298        psFree(wtSub);                 // Drop reference
    299 
    300299    }
    301300
Note: See TracChangeset for help on using the changeset viewer.