IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2009, 1:53:56 PM (17 years ago)
Author:
Paul Price
Message:

Using covariance factor to set the correct variance level for the combination. Adding additional recipe parameter to provide the fraction of values to discard when performing a 'olympic weighted mean'.

File:
1 edited

Legend:

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

    r21377 r21477  
    4949ppStackThreadData *ppStackThreadDataSetup(const psArray *cells, const psArray *imageNames,
    5050                                          const psArray *maskNames, const psArray *varianceNames,
    51                                           const pmConfig *config)
     51                                          const psArray *covariances, const pmConfig *config)
    5252{
    5353    PS_ASSERT_ARRAY_NON_NULL(cells, NULL);
     
    5555    PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, maskNames, NULL);
    5656    PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, varianceNames, NULL);
     57    PS_ASSERT_ARRAYS_SIZE_EQUAL(cells, covariances, NULL);
    5758
    5859    ppStackThreadData *stack = psAlloc(sizeof(ppStackThreadData)); // Thread data, to return
     
    9899                continue;
    99100            }
    100             readouts->data[j] = pmReadoutAlloc(cell);
     101            pmReadout *ro = pmReadoutAlloc(cell); // Readout for thread
     102            ro->covariance = psMemIncrRefCounter(covariances->data[j]);
     103            readouts->data[j] = ro;
    101104        }
    102105        threads->data[i] = ppStackThreadAlloc(readouts);
     
    236239
    237240    {
    238         psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 7);
     241        psThreadTask *task = psThreadTaskAlloc("PPSTACK_INITIAL_COMBINE", 6);
    239242        task->function = &ppStackReadoutInitialThread;
    240243        psThreadTaskAdd(task);
     
    250253
    251254    {
    252         psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 5);
     255        psThreadTask *task = psThreadTaskAlloc("PPSTACK_FINAL_COMBINE", 7);
    253256        task->function = &ppStackReadoutFinalThread;
    254257        psThreadTaskAdd(task);
Note: See TracChangeset for help on using the changeset viewer.