IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2006, 4:49:37 PM (19 years ago)
Author:
Paul Price
Message:

Reorganising shutter stuff to make it fit within the general framework in ppMergeCombine. Adding ppMergeMask to create a bad pixel mask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.c

    r9463 r9996  
    1414#include "ppMergeCombine.h"
    1515#include "ppMergeScaleZero.h"
     16#include "ppMergeMask.h"
    1617
    1718//#include "ppMem.h"
     
    4546    }
    4647
    47     // Measure the background in each image
    4848    psImage *scale = NULL;              // The scalings
    4949    psImage *zero = NULL;               // The zeros
    50     ppMergeScaleZero(&scale, &zero, data, options, config);
    5150
    52     // Do the combination and write
    53     ppMergeCombine(scale, zero, data, options, config);
     51    if (options->mask) {
     52        // Generate a mask
     53        ppMergeMask(data, options, config);
     54    } else {
     55        // Measure the background in each image
     56        ppMergeScaleZero(&scale, &zero, data, options, config);
     57
     58        // Do the combination and write
     59        ppMergeCombine(scale, zero, data, options, config);
     60    }
    5461
    5562    // Output the statistics
Note: See TracChangeset for help on using the changeset viewer.