Changeset 23576 for trunk/ppStack/src/ppStackCombineInitial.c
- Timestamp:
- Mar 27, 2009, 1:26:55 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackCombineInitial.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackCombineInitial.c
r23573 r23576 23 23 psTimerStart("PPSTACK_INITIAL"); 24 24 25 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe26 psAssert(recipe, "We've thrown an error on this before.");27 28 25 psMetadata *ppsub = psMetadataLookupMetadata(NULL, config->recipes, "PPSUB"); // PPSUB recipe 29 26 int overlap = 2 * psMetadataLookupS32(NULL, ppsub, 30 27 "KERNEL.SIZE"); // Overlap by kernel size between consecutive scans 31 28 32 pmFPAview *view = NULL; // View to readout33 34 int row0, col0; // Offset for readout35 int numCols, numRows; // Size of readout36 ppStackThread *thread = stack->threads->data[0]; // Representative thread37 if (!pmReadoutStackSetOutputSize(&col0, &row0, &numCols, &numRows, thread->readouts)) {38 psError(PS_ERR_UNKNOWN, false, "problem setting output readout size.");39 return false;40 }41 42 pmFPAfileActivate(config->files, false, NULL);43 ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);44 view = ppStackFilesIterateDown(config);45 if (!view) {46 return false;47 }48 49 pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell50 options->outRO = pmReadoutAlloc(outCell); // Output readout51 psFree(view);52 53 psString maskBadStr = psMetadataLookupStr(NULL, recipe, "MASK.BAD"); // Name of bits to mask for bad54 psImageMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels55 if (!pmReadoutStackDefineOutput(options->outRO, col0, row0, numCols, numRows, true, true, maskBad)) {56 psError(PS_ERR_UNKNOWN, false, "Unable to prepare output.");57 return false;58 }59 60 psFree(options->cells); options->cells = NULL;61 29 62 30 bool status; // Status of read
Note:
See TracChangeset
for help on using the changeset viewer.
