Changeset 13716 for trunk/psModules/src/imcombine/pmStack.c
- Timestamp:
- Jun 7, 2007, 4:52:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStack.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStack.c
r13520 r13716 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-0 5-25 03:43:22$10 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-06-08 02:52:21 $ 12 12 * 13 13 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 21 21 #include <stdio.h> 22 22 #include <pslib.h> 23 24 #include "pmHDU.h" 25 #include "pmFPA.h" 26 #include "pmConceptsAverage.h" 23 27 24 28 #include "pmStack.h" … … 513 517 psFree(buffer); 514 518 519 psList *cells = psListAlloc(NULL); // List of cells, for concept update 520 for (int i = 0; i < num; i++) { 521 pmStackData *data = input->data[i]; // Stacking data; contains the list of pixels 522 psListAdd(cells, PS_LIST_TAIL, data->sky->parent); 523 } 524 if (!pmConceptsAverageCells(combined->parent, cells, NULL, NULL, false)) { 525 psError(PS_ERR_UNKNOWN, false, "Unable to average concepts for input sky readouts."); 526 psFree(cells); 527 return false; 528 } 529 psFree(cells); 530 515 531 return true; 516 532 }
Note:
See TracChangeset
for help on using the changeset viewer.
