Changeset 10282
- Timestamp:
- Nov 29, 2006, 10:08:38 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmSubtractBias.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmSubtractBias.c
r9730 r10282 9 9 #include "pmFPA.h" 10 10 #include "pmSubtractBias.h" 11 12 #define PM_SUBTRACT_BIAS_POLYNOMIAL_ORDER 213 #define PM_SUBTRACT_BIAS_SPLINE_ORDER 314 11 15 12 … … 215 212 } 216 213 214 // psTime *time = psTimeGetNow(PS_TIME_TAI); // The time now, used for reporting 215 217 216 psImage *image = in->image; // The input image 218 217 … … 245 244 int index = pixels->n; // Index 246 245 pixels = psVectorRealloc(pixels, pixels->n + overscan->numRows * overscan->numCols); 246 pixels->n += overscan->numRows * overscan->numCols; 247 247 // XXX Reimplement with memcpy 248 248 for (int i = 0; i < overscan->numRows; i++) { … … 256 256 257 257 (void)psVectorStats(stats, pixels, NULL, NULL, 0); 258 psFree(pixels); 258 259 double reduced = psStatsGetValue(stats, statistic); // Result of statistics 259 260 (void)psBinaryOp(image, image, "-", psScalarAlloc((float)reduced, PS_TYPE_F32));
Note:
See TracChangeset
for help on using the changeset viewer.
