Changeset 16424
- Timestamp:
- Feb 13, 2008, 2:14:04 PM (18 years ago)
- Location:
- branches/pap_branch_080207/ppStack/src
- Files:
-
- 2 edited
-
ppStackMatch.c (modified) (1 diff)
-
ppStackReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_080207/ppStack/src/ppStackMatch.c
r16418 r16424 141 141 while ((item = psMetadataGetAndIncrement(iter))) { 142 142 assert(item->type == PS_DATA_UNKNOWN); 143 *kernels = psArrayAdd(*kernels, ARRAY_BUFFER, item->data.V); 143 // Set the normalisation dimensions, since these will be otherwise unavailable when reading the 144 // images by scans. 145 pmSubtractionKernels *kernel = item->data.V; // Kernel used in subtraction 146 kernel->numCols = readout->image->numCols; 147 kernel->numRows = readout->image->numRows; 148 149 *kernels = psArrayAdd(*kernels, ARRAY_BUFFER, kernel); 144 150 } 145 151 psFree(iter); -
branches/pap_branch_080207/ppStack/src/ppStackReadout.c
r16407 r16424 137 137 for (int i = 0; i < num; i++) { 138 138 pmStackData *data = stack->data[i]; // Data for this image 139 psPixels *reject = pmStackReject(data->pixels, threshold, regions->data[i], 139 pmReadout *readout = data->readout; // Readout of interest 140 int col0 = readout->col0, row0 = readout->row0; // Offset for readout 141 int numCols = readout->image->numCols, numRows = readout->image->numRows; // Size of image 142 143 psRegion *valid = psRegionAlloc(col0, col0 + numCols, row0, row0 + numRows); // Valid region for rej 144 psPixels *reject = pmStackReject(data->pixels, valid, threshold, regions->data[i], 140 145 kernels->data[i]); // Pixels to reject 146 psFree(valid); 141 147 psFree(data->pixels); 142 148 data->pixels = reject;
Note:
See TracChangeset
for help on using the changeset viewer.
