IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25948


Ignore:
Timestamp:
Oct 26, 2009, 5:59:14 PM (17 years ago)
Author:
Paul Price
Message:

Turn additional variance on again: it's important so as not to mask the cores of stars!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/imcombine/pmStack.c

    r25938 r25948  
    3030#define PIXEL_LIST_BUFFER 100           // Number of entries to add to pixel list at a time
    3131#define PIXEL_MAP_BUFFER 2              // Number of entries to add to pixel map at a time
    32 //#define ADD_VARIANCE                    // Allow additional variance (besides variance factor)?
     32#define ADD_VARIANCE                    // Allow additional variance (besides variance factor)?
    3333#define NUM_DIRECT_STDEV 5              // For less than this number of values, measure stdev directly
    3434
    35 #define TESTING                         // Enable test output
    36 #define TEST_X -1                     // x coordinate to examine
    37 #define TEST_Y -1                     // y coordinate to examine
     35//#define TESTING                         // Enable test output
     36//#define TEST_X 3349-1                     // x coordinate to examine
     37//#define TEST_Y 2278-1                     // y coordinate to examine
    3838
    3939
     
    641641    mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = num;
    642642    if (variance) {
    643         variance->data.F32[y][x] = 1.0 - (float)numRejected / (float)num;
     643        variance->data.F32[y][x] = num > 0 ? 1.0 - (float)numRejected / (float)num : 0.0;
    644644    }
    645645#endif
Note: See TracChangeset for help on using the changeset viewer.