Changeset 7445
- Timestamp:
- Jun 8, 2006, 12:14:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmSubtractBias.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmSubtractBias.c
r7278 r7445 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-06-0 2 00:55:23$13 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-08 22:14:28 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 213 213 psVector *ordinate = psVectorAlloc(pixels->n, PS_TYPE_F32); // Ordinate 214 214 psVector *mask = psVectorAlloc(pixels->n, PS_TYPE_U8); // Mask for fitting 215 reduced->n = ordinate->n = mask->n = pixels->n; 216 215 217 for (int i = 0; i < pixels->n; i++) { 216 218 psVector *values = pixels->data[i]; // Vector with overscan values … … 328 330 if (overscanOpts->single) { 329 331 psVector *pixels = psVectorAlloc(0, PS_TYPE_F32); 330 pixels->n = 0;331 332 psListIterator *iter = psListIteratorAlloc(overscans, PS_LIST_HEAD, false); // Iterator 332 333 psImage *overscan = NULL; // Overscan image from iterator … … 360 361 // The read direction is rows 361 362 psArray *pixels = psArrayAlloc(image->numRows); // Array of vectors containing pixels 363 pixels->n = image->numRows; 362 364 for (int i = 0; i < pixels->n; i++) { 363 365 psVector *values = psVectorAlloc(0, PS_TYPE_F32); 364 values->n = 0;365 366 pixels->data[i] = values; 366 367 } … … 404 405 // The read direction is columns 405 406 psArray *pixels = psArrayAlloc(image->numCols); // Array of vectors containing pixels 407 pixels->n = image->numCols; 406 408 for (int i = 0; i < pixels->n; i++) { 407 409 psVector *values = psVectorAlloc(0, PS_TYPE_F32); 408 values->n = 0;409 410 pixels->data[i] = values; 410 411 }
Note:
See TracChangeset
for help on using the changeset viewer.
