Changeset 2584 for trunk/psModules/src/pmReadoutCombine.c
- Timestamp:
- Dec 1, 2004, 11:20:24 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmReadoutCombine.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmReadoutCombine.c
r2287 r2584 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-1 1-05 04:49:47$7 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-12-01 21:20:24 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 PS_PTR_CHECK_NULL(inputs, NULL); 56 56 PS_PTR_CHECK_NULL(params, NULL); 57 unsigned int maskVal = params->maskVal;58 57 psStats *stats = params->stats; 59 58 int i; … … 64 63 int minInputRows = MAX_INT; 65 64 psListElem *tmpInput = NULL; 65 psReadout *tmpReadout = NULL; 66 66 int numInputs = 0; 67 psReadout *tmpReadout = NULL; 68 float tmpF; 69 67 int tmpI; 70 68 71 69 // … … 91 89 minInputRows = PS_MIN(minInputRows, 92 90 (tmpReadout->row0 + tmpReadout->image->row0)); 93 tmp F= tmpReadout->row0 +91 tmpI = tmpReadout->row0 + 94 92 tmpReadout->image->row0 + 95 93 tmpReadout->image->numRows; 96 maxInputRows = PS_MAX(maxInputRows, tmp F);94 maxInputRows = PS_MAX(maxInputRows, tmpI); 97 95 98 96 minInputCols = PS_MIN(minInputCols, 99 97 (tmpReadout->col0 + tmpReadout->image->col0)); 100 tmp F= tmpReadout->col0 +98 tmpI = tmpReadout->col0 + 101 99 tmpReadout->image->col0 + 102 100 tmpReadout->image->numCols; 103 maxInputCols = PS_MAX(maxInputCols, tmp F);101 maxInputCols = PS_MAX(maxInputCols, tmpI); 104 102 tmpInput = tmpInput->next; 105 103 numInputs++; … … 170 168 // For each input readout, we create a pointer to that readout in 171 169 // "tmpReadouts[]", and we store the min/max pixel indices for that 172 // readout, in putput image coordinates, in the psVectors170 // readout, in output image coordinates, in the psVectors 173 171 // (outRowLower, outColLower, outRowUpper, outColUpper). 174 172 i = 0; … … 184 182 tmpReadouts[i]->image->col0 + 185 183 tmpReadouts[i]->image->numCols; 186 187 // printf("Bounds: [%d][%d] to [%d][%d]\n", outRowLower->data.U32[i], outColLower->data.U32[i], outRowUpper->data.U32[i], outColUpper->data.U32[i]);188 189 190 184 tmpInput = tmpInput->next; 191 185 i++; … … 203 197 for (j = output->col0; j < (output->col0 + output->numCols) ; j++) { 204 198 for (int r = 0; r < numInputs ; r++) { 205 // printf("[%d][%d]: [%d][%d] to [%d][%d]\n", i, j, outRowLower->data.U32[r], outColLower->data.U32[r], outRowUpper->data.U32[r], outColUpper->data.U32[r]);199 // printf("[%d][%d]: [%d][%d] to [%d][%d]\n", i, j, outRowLower->data.U32[r], outColLower->data.U32[r], outRowUpper->data.U32[r], outColUpper->data.U32[r]); 206 200 if ((outRowLower->data.U32[r] <= i) && 207 201 (outColLower->data.U32[r] <= j) && … … 215 209 216 210 if ((NULL == tmpReadouts[r]->mask) || 217 !( maskVal && tmpReadouts[r]->mask->data.U8[imageRow][imageCol])) {211 !(params->maskVal && tmpReadouts[r]->mask->data.U8[imageRow][imageCol])) { 218 212 tmpPixels->data.F32[r] = tmpReadouts[r]->image->data.F32[imageRow][imageCol]; 219 213 tmpPixelMask->data.U8[r] = 0; … … 226 220 tmpPixelMask->data.U8[r] = 1; 227 221 } 228 // printf("readout[%d], image [%d][%d] is %f\n", r, i, j, tmpPixels->data.F32[r]);222 // printf("readout[%d], image [%d][%d] is %f\n", r, i, j, tmpPixels->data.F32[r]); 229 223 } 230 224 // At this point, we have scanned all input readouts for this
Note:
See TracChangeset
for help on using the changeset viewer.
