IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2007, 5:59:32 PM (19 years ago)
Author:
Paul Price
Message:

Changes to allow shutter correction to be processed piece by piece.

File:
1 edited

Legend:

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

    r9996 r13873  
    4646    }
    4747
    48     psImage *scale = NULL;              // The scalings
    49     psImage *zero = NULL;               // The zeros
    50 
    5148    if (options->mask) {
    5249        // Generate a mask
    5350        ppMergeMask(data, options, config);
    5451    } else {
     52
     53        psImage *scale = NULL;              // The scalings
     54        psImage *zero = NULL;               // The zeros
     55        psArray *shutters = NULL;           // The shutter correction data
     56
    5557        // Measure the background in each image
    56         ppMergeScaleZero(&scale, &zero, data, options, config);
     58        ppMergeScaleZero(&scale, &zero, &shutters, data, options, config);
    5759
    5860        // Do the combination and write
    59         ppMergeCombine(scale, zero, data, options, config);
     61        ppMergeCombine(scale, zero, shutters, data, options, config);
     62
     63        psFree(scale);
     64        psFree(zero);
     65        psFree(shutters);
    6066    }
    6167
     
    7379    // Cleaning up
    7480    psFree(data);
    75     psFree(scale);
    76     psFree(zero);
    7781    psFree(options);
    7882    psFree(config);
Note: See TracChangeset for help on using the changeset viewer.