- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackCombinePrepare.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/ppStack/src/ppStackCombinePrepare.c
r27004 r27517 10 10 #include "ppStackLoop.h" 11 11 12 bool ppStackCombinePrepare(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config) 12 bool ppStackCombinePrepare(const char *outName, const char *expName, 13 ppStackFileList files, ppStackThreadData *stack, 14 ppStackOptions *options, pmConfig *config) 13 15 { 14 16 psAssert(stack, "Require stack"); … … 25 27 26 28 pmFPAfileActivate(config->files, false, NULL); 27 ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);29 ppStackFileActivation(config, files, true); 28 30 pmFPAview *view = ppStackFilesIterateDown(config); // View to readout 29 31 if (!view) { … … 31 33 } 32 34 33 pmCell * outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell34 options->outRO = pmReadoutAlloc( outCell); // Output readout35 pmCell *cell = pmFPAfileThisCell(config->files, view, outName); // Output cell 36 options->outRO = pmReadoutAlloc(cell); // Output readout 35 37 36 pmCell * unconvCell = pmFPAfileThisCell(config->files, view, "PPSTACK.UNCONV"); // Unconvolvedcell37 options-> unconvRO = pmReadoutAlloc(unconvCell); // Unconvolvedreadout38 pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell 39 options->expRO = pmReadoutAlloc(expCell); // Output readout 38 40 39 41 psFree(view); … … 49 51 } 50 52 51 options->unconvRO->image = psImageCopy(NULL, options->outRO->image, PS_TYPE_F32); 52 // options->unconvRO->mask = psImageCopy(NULL, options->outRO->mask, PS_TYPE_IMAGE_MASK); 53 options->unconvRO->col0 = options->outRO->col0; 54 options->unconvRO->row0 = options->outRO->row0; 55 56 53 if (!pmReadoutStackDefineOutput(options->expRO, col0, row0, numCols, numRows, true, true, 0)) { 54 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output."); 55 return false; 56 } 57 57 58 58 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
