Changeset 3027
- Timestamp:
- Jan 17, 2005, 1:25:10 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 8 edited
-
astronomy/psAstrometry.c (modified) (2 diffs)
-
dataManip/psFunctions.c (modified) (2 diffs)
-
dataManip/psMinimize.c (modified) (4 diffs)
-
image/psImageStats.c (modified) (3 diffs)
-
imageops/psImageStats.c (modified) (3 diffs)
-
math/psMinimize.c (modified) (4 diffs)
-
math/psPolynomial.c (modified) (2 diffs)
-
math/psSpline.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r3000 r3027 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-01-1 4 23:27:55$10 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-01-17 23:25:09 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 567 567 } 568 568 } 569 printf("Hmmm, returning NULL\n"); 569 570 // XXX: Print warning here? 570 571 return (NULL); 571 572 } -
trunk/psLib/src/dataManip/psFunctions.c
r3026 r3027 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-01-17 2 2:17:29 $9 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-01-17 23:25:09 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 344 344 for (i=0;i<myPoly->n;i++) { 345 345 tmp+= (myPoly->coeff[i] * psPolynomial1DEval(x, chebPolys[i])); 346 // printf("HMMM: psPolynomial1DEval(%f, chebPolys[%d]) is %f\n", x, i, psPolynomial1DEval(x, chebPolys[i]));347 346 } 348 347 tmp-= (myPoly->coeff[0]/2.0); -
trunk/psLib/src/dataManip/psMinimize.c
r3026 r3027 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-01-17 2 2:17:29 $11 * @version $Revision: 1.101 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-17 23:25:09 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 280 280 // If x==NULL, create an x32 vector with x values set to (0:n). 281 281 if (x == NULL) { 282 283 282 PS_VECTOR_GEN_X_INDEX_STATIC_F32(x32Static, y->n); 284 283 x32 = x32Static; … … 294 293 This can not be implemented until SDR states what order spline should be 295 294 created. 296 295 Should we error if mySpline is not NULL? 297 296 Should we error if mySPline is not NULL? 298 297 */ … … 302 301 PS_PTR_CHECK_NULL(mySpline, NULL); 303 302 PS_INT_CHECK_NON_NEGATIVE(mySpline->n, NULL); 304 305 303 306 304 if (y32->n != (1 + mySpline->n)) { -
trunk/psLib/src/image/psImageStats.c
r2807 r3027 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-23 19:14:15$11 * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-17 23:25:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 300 300 /***************************************************************************** 301 301 psImageFitPolynomial(): This routine takes as input a 2-D image and produces 302 as output the coefficients of the Chebyshev polynomials which match that 303 i nput image.302 as output the coefficients of the Chebyshev polynomials which match that input 303 image. This is a TEST version of the code. It is not used by anything. 304 304 Input: 305 305 Output: … … 359 359 // nodes->data.F64[x][y] = psImagePixelInterpolate(input, yNode, xNode, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 360 360 // nodes->data.F64[x][y] = psImagePixelInterpolate(input, yTmp, xTmp, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 361 printf("HMMMM: (xOrig, yOrig) is (%f, %f)\n", xOrig, yOrig);362 361 nodes->data.F64[x][y] = psImagePixelInterpolate(input, yOrig, xOrig, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 363 printf("HMMMM: interpolated pixel [%d][%d] is %f, should be %f\n", x, y, nodes->data.F64[x][y], input->data.F32[x][y]);364 362 } 365 363 } -
trunk/psLib/src/imageops/psImageStats.c
r2807 r3027 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-23 19:14:15$11 * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-17 23:25:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 300 300 /***************************************************************************** 301 301 psImageFitPolynomial(): This routine takes as input a 2-D image and produces 302 as output the coefficients of the Chebyshev polynomials which match that 303 i nput image.302 as output the coefficients of the Chebyshev polynomials which match that input 303 image. This is a TEST version of the code. It is not used by anything. 304 304 Input: 305 305 Output: … … 359 359 // nodes->data.F64[x][y] = psImagePixelInterpolate(input, yNode, xNode, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 360 360 // nodes->data.F64[x][y] = psImagePixelInterpolate(input, yTmp, xTmp, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 361 printf("HMMMM: (xOrig, yOrig) is (%f, %f)\n", xOrig, yOrig);362 361 nodes->data.F64[x][y] = psImagePixelInterpolate(input, yOrig, xOrig, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR); 363 printf("HMMMM: interpolated pixel [%d][%d] is %f, should be %f\n", x, y, nodes->data.F64[x][y], input->data.F32[x][y]);364 362 } 365 363 } -
trunk/psLib/src/math/psMinimize.c
r3026 r3027 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-01-17 2 2:17:29 $11 * @version $Revision: 1.101 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-17 23:25:09 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 280 280 // If x==NULL, create an x32 vector with x values set to (0:n). 281 281 if (x == NULL) { 282 283 282 PS_VECTOR_GEN_X_INDEX_STATIC_F32(x32Static, y->n); 284 283 x32 = x32Static; … … 294 293 This can not be implemented until SDR states what order spline should be 295 294 created. 296 295 Should we error if mySpline is not NULL? 297 296 Should we error if mySPline is not NULL? 298 297 */ … … 302 301 PS_PTR_CHECK_NULL(mySpline, NULL); 303 302 PS_INT_CHECK_NON_NEGATIVE(mySpline->n, NULL); 304 305 303 306 304 if (y32->n != (1 + mySpline->n)) { -
trunk/psLib/src/math/psPolynomial.c
r3026 r3027 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-01-17 2 2:17:29 $9 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-01-17 23:25:09 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 344 344 for (i=0;i<myPoly->n;i++) { 345 345 tmp+= (myPoly->coeff[i] * psPolynomial1DEval(x, chebPolys[i])); 346 // printf("HMMM: psPolynomial1DEval(%f, chebPolys[%d]) is %f\n", x, i, psPolynomial1DEval(x, chebPolys[i]));347 346 } 348 347 tmp-= (myPoly->coeff[0]/2.0); -
trunk/psLib/src/math/psSpline.c
r3026 r3027 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-01-17 2 2:17:29 $9 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-01-17 23:25:09 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 344 344 for (i=0;i<myPoly->n;i++) { 345 345 tmp+= (myPoly->coeff[i] * psPolynomial1DEval(x, chebPolys[i])); 346 // printf("HMMM: psPolynomial1DEval(%f, chebPolys[%d]) is %f\n", x, i, psPolynomial1DEval(x, chebPolys[i]));347 346 } 348 347 tmp-= (myPoly->coeff[0]/2.0);
Note:
See TracChangeset
for help on using the changeset viewer.
