Changeset 5102 for trunk/psModules/src/pmSubtractBias.c
- Timestamp:
- Sep 22, 2005, 3:56:54 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmSubtractBias.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmSubtractBias.c
r4997 r5102 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-09- 12 20:38:25$8 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-09-23 01:55:30 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #define PM_SUBTRACT_BIAS_SPLINE_ORDER 3 23 23 24 // XXX: put these in psConstants.h 25 void PS_POLY1D_PRINT(psPolynomial1D *poly) 26 { 27 printf("-------------- PS_POLY1D_PRINT() --------------\n"); 28 printf("poly->COOL_1D_n is %d\n", poly->COOL_1D_n); 29 for (psS32 i = 0 ; i < (1 + poly->COOL_1D_n) ; i++) { 30 printf("poly->coeff[%d] is %f\n", i, poly->coeff[i]); 31 } 32 } 33 34 void PS_PRINT_SPLINE(psSpline1D *mySpline) 35 { 36 printf("-------------- PS_PRINT_SPLINE() --------------\n"); 37 printf("mySpline->n is %d\n", mySpline->n); 38 for (psS32 i = 0 ; i < mySpline->n ; i++) { 39 PS_POLY1D_PRINT(mySpline->spline[i]); 40 } 41 PS_VECTOR_PRINT_F32(mySpline->knots); 42 } 43 44 #define PS_IMAGE_PRINT_F32_HIDEF(NAME) \ 45 printf("======== printing %s ========\n", #NAME); \ 46 for (int i = 0 ; i < (NAME)->numRows ; i++) { \ 47 for (int j = 0 ; j < (NAME)->numCols ; j++) { \ 48 printf("%.5f ", (NAME)->data.F32[i][j]); \ 49 } \ 50 printf("\n"); \ 51 }\ 52 24 53 /****************************************************************************** 25 54 psSubtractFrame(): this routine will take as input a readout for the input 26 55 image and a readout for the bias image. The bias image is subtracted in 27 56 place from the input image. 28 *****************************************************************************/57 *****************************************************************************/ 29 58 static pmReadout *SubtractFrame(pmReadout *in, 30 59 const pmReadout *bias) … … 143 172 return(opt); 144 173 } 174 175 145 176 146 177 /****************************************************************************** … … 161 192 psTrace(".psModule.pmSubtracBias.ScaleOverscanVector", 4, 162 193 "---- ScaleOverscanVector() begin (%d -> %d) ----\n", overscanVector->n, n); 194 // PS_VECTOR_PRINT_F32(overscanVector); 163 195 164 196 if (NULL == overscanVector) { … … 218 250 return(NULL); 219 251 } 252 // PS_PRINT_SPLINE(mySpline); 220 253 221 254 // For each element of the new vector, convert the x-ordinate to that … … 230 263 psFree(mySpline); 231 264 } 265 // PS_VECTOR_PRINT_F32(newVec); 266 232 267 233 268 } else { … … 376 411 tmpOverscan = (psListElem *) overscans->head; 377 412 while (NULL != tmpOverscan) { 413 // PS_IMAGE_PRINT_F32_HIDEF(in->image); 378 414 myOverscanImage = (psImage *) tmpOverscan->data; 379 415
Note:
See TracChangeset
for help on using the changeset viewer.
