IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2006, 7:21:12 PM (20 years ago)
Author:
Paul Price
Message:

Adding pmConceptsAverageCells() from previous cellConcepts() in pmFPAMosaic: given a list of cells, find a reasonable combination of the concepts. This is used in pmFPAMosaic and now also pmReadoutCombine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r7802 r7849  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-07-04 00:19:11 $
     7 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-07-08 05:21:12 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818#include "pmFPA.h"
    1919#include "pmFPAMaskWeight.h"
     20#include "pmConceptsAverage.h"
    2021
    2122#include "pmReadoutCombine.h"
     
    396397    psFree(mask);
    397398    psFree(weights);
    398 
    399399    psFree(stats);
     400
     401    // Update the "concepts"
     402    psList *inputCells = psListAlloc(NULL); // List of cells
     403    for (long i = 0; i < inputs->n; i++) {
     404        pmReadout *readout = inputs->data[i]; // Readout of interest
     405        psListAdd(inputCells, PS_LIST_TAIL, readout->parent);
     406    }
     407    pmConceptsAverageCells(output->parent, inputCells, 0, 0, NULL, NULL);
     408    psFree(inputCells);
    400409
    401410    return true;
Note: See TracChangeset for help on using the changeset viewer.