Changeset 27319 for trunk/ppStack/src/ppStackCombinePrepare.c
- Timestamp:
- Mar 18, 2010, 12:01:15 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackCombinePrepare.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackCombinePrepare.c
r27004 r27319 10 10 #include "ppStackLoop.h" 11 11 12 bool ppStackCombinePrepare(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config) 12 bool ppStackCombinePrepare(pmReadout **ro, const char *name, ppStackFileList files, ppStackThreadData *stack, 13 ppStackOptions *options, pmConfig *config) 13 14 { 14 15 psAssert(stack, "Require stack"); … … 25 26 26 27 pmFPAfileActivate(config->files, false, NULL); 27 ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);28 ppStackFileActivation(config, files, true); 28 29 pmFPAview *view = ppStackFilesIterateDown(config); // View to readout 29 30 if (!view) { … … 31 32 } 32 33 33 pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell 34 options->outRO = pmReadoutAlloc(outCell); // Output readout 35 36 pmCell *unconvCell = pmFPAfileThisCell(config->files, view, "PPSTACK.UNCONV"); // Unconvolved cell 37 options->unconvRO = pmReadoutAlloc(unconvCell); // Unconvolved readout 34 pmCell *cell = pmFPAfileThisCell(config->files, view, name); // Output cell 35 *ro = pmReadoutAlloc(cell); // Output readout 38 36 39 37 psFree(view); … … 44 42 psImageMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels 45 43 46 if (!pmReadoutStackDefineOutput( options->outRO, col0, row0, numCols, numRows, true, true, maskBad)) {44 if (!pmReadoutStackDefineOutput(*ro, col0, row0, numCols, numRows, true, true, maskBad)) { 47 45 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output."); 48 46 return false; 49 47 } 50 48 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 57 58 49 return true; 59 50 }
Note:
See TracChangeset
for help on using the changeset viewer.
