IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2009, 10:00:02 AM (17 years ago)
Author:
Paul Price
Message:

Reorganising ppStackLoop: splitting into multiple separate functions which are joined using a common data carrier, ppStackOptions (which aren't really 'options', but that's the word I chose...).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReadout.c

    r21477 r23341  
    88#include <psphot.h>
    99
     10#include "ppStackThread.h"
    1011#include "ppStack.h"
    1112
     
    1617    psArray *args = job->args;          // Arguments
    1718    ppStackThread *thread = args->data[0]; // Thread
    18     pmConfig *config = args->data[1];   // Configuration
    19     pmReadout *outRO = args->data[2];   // Output readout
    20     psVector *mask = args->data[3];     // Mask for inputs
    21     psVector *weightings = args->data[4]; // Weightings (1/noise^2) for each image
    22     psVector *addVariance = args->data[5]; // Additional variance when rejecting
     19    ppStackOptions *options = args->data[1]; // Options
     20    pmConfig *config = args->data[2];   // Configuration
     21
     22    pmReadout *outRO = options->outRO;  // Output readout
     23    psVector *mask = options->inputMask; // Mask for inputs
     24    psVector *weightings = options->weightings; // Weightings (1/noise^2) for each image
     25    psVector *addVariance = options->matchChi2; // Additional variance when rejecting
    2326
    2427    psArray *inspect = ppStackReadoutInitial(config, outRO, thread->readouts, mask,
     
    3740    psArray *args = job->args;          // Arguments
    3841    ppStackThread *thread = args->data[0]; // Thread
    39     pmConfig *config = args->data[1];   // Configuration
    40     pmReadout *outRO = args->data[2];   // Output readout
    41     psVector *mask = args->data[3];     // Mask for inputs
    42     psArray *rejected = args->data[4];  // Rejected pixels
    43     psVector *weightings = args->data[5];  // Weighting (1/noise^2) for each image
    44     psVector *addVariance = args->data[6];  // Weighting (1/noise^2) for each image
     42    ppStackOptions *options = args->data[1]; // Options
     43    pmConfig *config = args->data[2];   // Configuration
     44
     45    pmReadout *outRO = options->outRO;  // Output readout
     46    psVector *mask = options->inputMask; // Mask for inputs
     47    psArray *rejected = options->rejected; // Rejected pixels
     48    psVector *weightings = options->weightings; // Weightings (1/noise^2) for each image
     49    psVector *addVariance = options->matchChi2; // Additional variance when rejecting
    4550
    4651    bool status = ppStackReadoutFinal(config, outRO, thread->readouts, mask, rejected,
Note: See TracChangeset for help on using the changeset viewer.