Changeset 19846
- Timestamp:
- Oct 2, 2008, 10:50:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmOverscan.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmOverscan.c
r15133 r19846 293 293 } 294 294 295 bool mdok = false; 296 295 297 // We are performing a row-by-row overscan subtraction 296 bool readRows = psMetadataLookupBool(NULL, input->parent->concepts, "CELL.READDIR"); // Read direction 298 int cellreaddir = psMetadataLookupS32(&mdok, input->parent->concepts, "CELL.READDIR"); // Read direction 299 if ((cellreaddir != 1) && (cellreaddir != 2)) { 300 psError(PS_ERR_UNKNOWN, true, "CELL.READDIR must be 1 (rows) or 2 (cols)\n"); 301 return false; 302 } 303 297 304 float chi2 = NAN; // chi^2 from fit 298 305 299 306 // adjust operation depending on the read direction : need to re-org pixels for columns 300 if ( readRows) {307 if (cellreaddir == 1) { 301 308 // The read direction is rows 302 309 psArray *pixels = psArrayAlloc(image->numRows); // Array of vectors containing pixels … … 344 351 } 345 352 psFree(reduced); 346 } else { 353 } 354 if (cellreaddir == 2) { 347 355 // The read direction is columns 348 356 psArray *pixels = psArrayAlloc(image->numCols); // Array of vectors containing pixels
Note:
See TracChangeset
for help on using the changeset viewer.
