Changeset 1952
- Timestamp:
- Oct 4, 2004, 3:05:09 PM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 1 added
- 1 edited
-
tst_psImageStats02.c (modified) (2 diffs)
-
verified/tst_psImageStats02.stderr (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageStats02.c
r1811 r1952 26 26 psImage *outImage = NULL; 27 27 psPolynomial2D *my2DPoly = NULL; 28 psPolynomial2D *null2DPoly = NULL; 28 29 int testStatus = true; 29 30 int memLeaks = 0; … … 54 55 "Calculate Chebyshev Polynomials, no mask" ); 55 56 56 my2DPoly = psImageFitPolynomial( tmpImage, my2DPoly);57 my2DPoly = psImageFitPolynomial( my2DPoly, tmpImage ); 57 58 for ( i = 0;i < CHEBY_X_DIM;i++ ) { 58 59 for ( j = 0;j < CHEBY_Y_DIM;j++ ) { 59 60 printf( "Cheby Polynomial (%d, %d) coefficient is %.2f\n", i, j, 0.0001f+my2DPoly->coeff[ i ][ j ] ); 60 61 } 62 } 63 64 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error message for NULL coeffs argument."); 65 null2DPoly = psImageFitPolynomial( NULL, tmpImage ); 66 if ( null2DPoly != NULL ) { 67 printf("ERROR: psImageFitPolynomial did not return NULL with invalid coeffs argument."); 68 } 69 70 psLogMsg(__func__,PS_LOG_INFO,"Following should be a error message for NULL input argument."); 71 null2DPoly = psImageFitPolynomial( null2DPoly, NULL ); 72 if ( null2DPoly != NULL ) { 73 printf("ERROR: psImageFitPolynomial did not return NULL with null input image."); 61 74 } 62 75
Note:
See TracChangeset
for help on using the changeset viewer.
