Changeset 4579 for trunk/psModules/test
- Timestamp:
- Jul 18, 2005, 3:44:48 PM (21 years ago)
- Location:
- trunk/psModules/test
- Files:
-
- 7 edited
-
tst_pmImageCombine.c (modified) (3 diffs)
-
tst_pmImageSubtract.c (modified) (4 diffs)
-
tst_pmObjects01.c (modified) (22 diffs)
-
verified/tst_pmImageCombine.stderr (modified) (1 diff)
-
verified/tst_pmImageCombine.stdout (modified) (2 diffs)
-
verified/tst_pmImageSubtract.stderr (modified) (2 diffs)
-
verified/tst_pmImageSubtract.stdout (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/tst_pmImageCombine.c
r4291 r4579 9 9 * XXX: Must verify the results internally. Don't use stdout file. 10 10 * 11 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 6-16 23:13:43$11 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-07-19 01:44:48 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 266 266 267 267 if (questionablePixels->n != numImages) { 268 printf("TEST ERROR: pmCombineImages(): questionablePixels->n was % d, should have been %d\n",268 printf("TEST ERROR: pmCombineImages(): questionablePixels->n was %ld, should have been %d\n", 269 269 questionablePixels->n, numImages); 270 270 testStatus = true; … … 313 313 for (psS32 i = 0 ; i < pixelRejects->n ; i++) { 314 314 psPixels *myPixels = (psPixels *) pixelRejects->data[i]; 315 printf("tst_pmImageCombine.c: Image %d had % d rejects.\n", i, myPixels->n);315 printf("tst_pmImageCombine.c: Image %d had %ld rejects.\n", i, myPixels->n); 316 316 317 317 for (psS32 p = 0 ; p < myPixels->n ; p++) { -
trunk/psModules/test/tst_pmImageSubtract.c
r4418 r4579 10 10 * data. More work need to be done to verify the results. 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 6-28 23:28:18 $12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-07-19 01:44:48 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 337 337 // Create a test image and set a single pixel in the center of each stamp. 338 338 psImage *tstImg = psImageAlloc(numCols, numRows, PS_TYPE_F32); 339 psS32numStamps = 0;339 int numStamps = 0; 340 340 PS_IMAGE_SET_F32(tstImg, 0.0); 341 341 for (psS32 j = 0; j < yNum; j++) { … … 407 407 } else { 408 408 if (stamps->n != numStamps) { 409 printf("TEST ERROR: % d stamps were found, %d were expected.\n",409 printf("TEST ERROR: %ld stamps were found, %d were expected.\n", 410 410 stamps->n, numStamps); 411 411 testStatus = true; … … 443 443 } else { 444 444 if (stamps->n != numStamps) { 445 printf("TEST ERROR: % d stamps were found, %d were expected.\n",445 printf("TEST ERROR: %ld stamps were found, %d were expected.\n", 446 446 stamps->n, numStamps); 447 447 testStatus = true; -
trunk/psModules/test/tst_pmObjects01.c
r4221 r4579 19 19 * abd never deallocate, no error is generated. 20 20 * 21 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $22 * @date $Date: 2005-0 6-13 19:59:21$21 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2005-07-19 01:44:48 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 128 128 } else { 129 129 if ((tmpModel->params->n != 7) || (tmpModel->dparams->n != 7)) { 130 printf("TEST ERROR: pmModelAlloc(PS_MODEL_GAUSS) allocated an incorrect number of params (% d, %d)\n",130 printf("TEST ERROR: pmModelAlloc(PS_MODEL_GAUSS) allocated an incorrect number of params (%ld, %ld)\n", 131 131 tmpModel->params->n, tmpModel->dparams->n); 132 132 testStatus = false; … … 150 150 } else { 151 151 if ((tmpModel->params->n != 7) || (tmpModel->dparams->n != 7)) { 152 printf("TEST ERROR: pmModelAlloc(PS_MODEL_PGAUSS) allocated an incorrect number of params (% d, %d)\n",152 printf("TEST ERROR: pmModelAlloc(PS_MODEL_PGAUSS) allocated an incorrect number of params (%ld, %ld)\n", 153 153 tmpModel->params->n, tmpModel->dparams->n); 154 154 testStatus = false; … … 172 172 } else { 173 173 if ((tmpModel->params->n != 11) || (tmpModel->dparams->n != 11)) { 174 printf("TEST ERROR: pmModelAlloc(PS_MODEL_TWIST_GAUSS) allocated an incorrect number of params (% d, %d)\n",174 printf("TEST ERROR: pmModelAlloc(PS_MODEL_TWIST_GAUSS) allocated an incorrect number of params (%ld, %ld)\n", 175 175 tmpModel->params->n, tmpModel->dparams->n); 176 176 testStatus = false; … … 194 194 } else { 195 195 if ((tmpModel->params->n != 9) || (tmpModel->dparams->n != 9)) { 196 printf("TEST ERROR: pmModelAlloc(PS_MODEL_WAUSS) allocated an incorrect number of params (% d, %d)\n",196 printf("TEST ERROR: pmModelAlloc(PS_MODEL_WAUSS) allocated an incorrect number of params (%ld, %ld)\n", 197 197 tmpModel->params->n, tmpModel->dparams->n); 198 198 testStatus = false; … … 216 216 } else { 217 217 if ((tmpModel->params->n != 8) || (tmpModel->dparams->n != 8)) { 218 printf("TEST ERROR: pmModelAlloc(PS_MODEL_SERSIC) allocated an incorrect number of params (% d, %d)\n",218 printf("TEST ERROR: pmModelAlloc(PS_MODEL_SERSIC) allocated an incorrect number of params (%ld, %ld)\n", 219 219 tmpModel->params->n, tmpModel->dparams->n); 220 220 testStatus = false; … … 238 238 } else { 239 239 if ((tmpModel->params->n != 12) || (tmpModel->dparams->n != 12)) { 240 printf("TEST ERROR: pmModelAlloc(PS_MODEL_SERSIC_CORE) allocated an incorrect number of params (% d, %d)\n",240 printf("TEST ERROR: pmModelAlloc(PS_MODEL_SERSIC_CORE) allocated an incorrect number of params (%ld, %ld)\n", 241 241 tmpModel->params->n, tmpModel->dparams->n); 242 242 testStatus = false; … … 290 290 } else { 291 291 if (outData->n != 1) { 292 printf("TEST ERROR: outData->n is % d\n", outData->n);292 printf("TEST ERROR: outData->n is %ld\n", outData->n); 293 293 testStatus = false; 294 294 } … … 316 316 317 317 if (outData->n != 0) { 318 printf("TEST ERROR: outData->n is % d\n", outData->n);318 printf("TEST ERROR: outData->n is %ld\n", outData->n); 319 319 testStatus = false; 320 320 } … … 344 344 345 345 if (outData->n != 1) { 346 printf("TEST ERROR: outData->n is % d\n", outData->n);346 printf("TEST ERROR: outData->n is %ld\n", outData->n); 347 347 testStatus = false; 348 348 } … … 370 370 371 371 if (outData->n != 0) { 372 printf("TEST ERROR: outData->n is % d\n", outData->n);372 printf("TEST ERROR: outData->n is %ld\n", outData->n); 373 373 testStatus = false; 374 374 } … … 398 398 399 399 if (outData->n != n/2) { 400 printf("TEST ERROR: outData->n is % d\n", outData->n);400 printf("TEST ERROR: outData->n is %ld\n", outData->n); 401 401 testStatus = false; 402 402 } … … 423 423 424 424 if (outData->n != 0) { 425 printf("TEST ERROR: outData->n is % d\n", outData->n);425 printf("TEST ERROR: outData->n is %ld\n", outData->n); 426 426 testStatus = false; 427 427 } … … 477 477 478 478 /****************************************************************************** 479 test02(): 479 test02(): 480 480 // XXX: Must test flat peaks. 481 481 // XXX: test 1-by-n and n-by-1 images. … … 539 539 } 540 540 if (outData->n != expectedNumPeaks) { 541 printf("TEST ERROR: pmFindImagePeaks found % d peaks (should be %d)\n", outData->n, expectedNumPeaks);541 printf("TEST ERROR: pmFindImagePeaks found %ld peaks (should be %d)\n", outData->n, expectedNumPeaks); 542 542 testStatus = false; 543 543 } … … 681 681 /* XXX: Modify for new pmCullPeaks 682 682 outData = pmCullPeaks(outData, PS_MAX_F32, NULL); 683 683 684 684 if (outData == NULL) { 685 685 printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n"); … … 702 702 printf("Calling pmCullPeaks with tiny maxValue and NULL psRegion.\n"); 703 703 outData = pmFindImagePeaks(imgData, 0.0); 704 printf("pmFindImagePeaks found % d peaks\n", outData->n);704 printf("pmFindImagePeaks found %ld peaks\n", outData->n); 705 705 /* XXX: Modify for new pmCullPeaks 706 706 outData = pmCullPeaks(outData, 0.0, NULL); 707 707 708 708 if (outData == NULL) { 709 709 printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n"); … … 726 726 printf("Calling pmCullPeaks with large maxValue and disjoint psRegion.\n"); 727 727 outData = pmFindImagePeaks(imgData, 0.0); 728 printf("pmFindImagePeaks found % d peaks\n", outData->n);728 printf("pmFindImagePeaks found %ld peaks\n", outData->n); 729 729 psRegion tmpRegion = psRegionSet(10000.0, 20000.0, 10000.0, 20000.0); 730 730 731 731 /* XXX: Modify for new pmCullPeaks 732 732 outData = pmCullPeaks(outData, PS_MAX_F32, tmpRegion); 733 733 734 734 if (outData == NULL) { 735 735 printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n"); … … 752 752 printf("Calling pmCullPeaks with large maxValue and non-disjoint psRegion.\n"); 753 753 outData = pmFindImagePeaks(imgData, 0.0); 754 printf("pmFindImagePeaks found % d peaks\n", outData->n);754 printf("pmFindImagePeaks found %ld peaks\n", outData->n); 755 755 tmpRegion = psRegionSet(-PS_MAX_F32, PS_MAX_F32, -PS_MAX_F32, PS_MAX_F32); 756 756 /* XXX: Modify for new pmCullPeaks 757 757 outData = pmCullPeaks(outData, PS_MAX_F32, tmpRegion); 758 758 759 759 if (outData == NULL) { 760 760 printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n"); … … 1145 1145 testStatus = false; 1146 1146 } 1147 1147 1148 1148 printf("----------------------------------------------------------------------------------\n"); 1149 1149 printf("Calling pmSourceSetPixelsCircle with subImage endCol > numCols. Should generate error and return NULL.\n"); … … 1156 1156 testStatus = false; 1157 1157 } 1158 1158 1159 1159 printf("----------------------------------------------------------------------------------\n"); 1160 1160 printf("Calling pmSourceSetPixelsCircle with subImage startRow < 0. Should generate error and return NULL.\n"); … … 1167 1167 testStatus = false; 1168 1168 } 1169 1169 1170 1170 printf("----------------------------------------------------------------------------------\n"); 1171 1171 printf("Calling pmSourceSetPixelsCircle with subImage endRow > numRows. Should generate error and return NULL.\n"); -
trunk/psModules/test/verified/tst_pmImageCombine.stderr
r4219 r4579 24 24 ---> TESTPOINT PASSED (Test Point Driver{pmCombineImages()} | tst_pmImageCombine.c) 25 25 26 /***************************** TESTPOINT ******************************************\27 * TestFile: tst_pmImageCombine.c *28 * TestPoint: Test Point Driver{pmRejectPixels()} *29 * TestType: Positive *30 \**********************************************************************************/31 32 33 ---> TESTPOINT PASSED (Test Point Driver{pmRejectPixels()} | tst_pmImageCombine.c)34 -
trunk/psModules/test/verified/tst_pmImageCombine.stdout
r4219 r4579 1 1 Testing pmCombineImages(10, 10, 5) 2 Generating a bad pixel in image (1) at (0, 8) 3 Generating a bad pixel in image (3) at (7, 5) 4 Generating a bad pixel in image (1) at (1, 2) 5 Generating a bad pixel in image (2) at (9, 9) 6 Generating a bad pixel in image (1) at (3, 9) 7 Generating a bad pixel in image (2) at (0, 5) 8 Generating a bad pixel in image (1) at (4, 5) 9 Generating a bad pixel in image (1) at (3, 8) 10 Generating a bad pixel in image (2) at (6, 2) 11 Generating a bad pixel in image (2) at (3, 7) 2 12 Calling with a NULL images. Should generate error, return NULL. 3 13 Calling with a long images. Should generate error, return NULL. … … 19 29 Image 2, questionable pixel 3 is (3 7) 20 30 Image 3, questionable pixel 0 is (7 5) 21 Testing pmRejectPixels(10, 10, 5, 1.000000, 1.000000) 31 32 33 34 Calling pmRejectPixels() with acceptable data. Should generate a psArray. 35 tst_pmImageCombine.c: Image 0 had 0 rejects. 36 tst_pmImageCombine.c: Image 1 had 4 rejects. 37 Image 1, rejected pixel 0 is (0 8) 38 Image 1, rejected pixel 1 is (1 2) 39 Image 1, rejected pixel 2 is (4 5) 40 Image 1, rejected pixel 3 is (3 8) 41 tst_pmImageCombine.c: Image 2 had 3 rejects. 42 Image 2, rejected pixel 0 is (0 5) 43 Image 2, rejected pixel 1 is (6 2) 44 Image 2, rejected pixel 2 is (3 7) 45 tst_pmImageCombine.c: Image 3 had 1 rejects. 46 Image 3, rejected pixel 0 is (7 5) 47 tst_pmImageCombine.c: Image 4 had 0 rejects. -
trunk/psModules/test/verified/tst_pmImageSubtract.stderr
r4200 r4579 23 23 \**********************************************************************************/ 24 24 25 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)25 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 26 26 Unallowable operation: psImage image or its data is NULL. 27 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)27 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 28 28 Error: xNum is 0 or less. 29 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)29 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 30 30 Error: yNum is 0 or less. 31 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)31 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 32 32 Error: border is 0 or less. 33 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)33 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 34 34 Unallowable operation: psImage image or its data is NULL. 35 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)35 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 36 36 Error: xNum is 0 or less. 37 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)37 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 38 38 Error: yNum is 0 or less. 39 < DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)39 <HOST>|E|pmSubtractionFindStamps (FILE:LINENO) 40 40 Error: border is 0 or less. 41 41 … … 48 48 \**********************************************************************************/ 49 49 50 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)50 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 51 51 Unallowable operation: stamps is NULL. 52 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)52 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 53 53 Unallowable operation: psImage reference or its data is NULL. 54 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)54 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 55 55 Unallowable operation: psImage input or its data is NULL. 56 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)56 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 57 57 Unallowable operation: kernels is NULL. 58 < DATE><TIME>|<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)58 <HOST>|E|pmSubtractionSolveEquation (FILE:LINENO) 59 59 Unallowable operation: stamps is NULL. 60 <DATE><TIME>|<HOST>|W|psVectorStats 61 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 62 <DATE><TIME>|<HOST>|W|psVectorStats 63 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 64 <DATE><TIME>|<HOST>|W|psVectorStats 65 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 66 <DATE><TIME>|<HOST>|W|psVectorStats 67 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 68 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 60 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 69 61 Unallowable operation: psVector solution or its data is NULL. 70 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)62 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 71 63 Unallowable operation: kernels is NULL. 72 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)64 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 73 65 Error: x, -2.000000, is out of range. Must be between -1.000000 and 1.000000. 74 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)66 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 75 67 Error: x, 2.000000, is out of range. Must be between -1.000000 and 1.000000. 76 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)68 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 77 69 Error: y, -2.000000, is out of range. Must be between -1.000000 and 1.000000. 78 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)70 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 79 71 Error: y, 2.000000, is out of range. Must be between -1.000000 and 1.000000. 80 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)72 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 81 73 Unallowable operation: stamps is NULL. 82 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)74 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 83 75 Unallowable operation: psImage reference or its data is NULL. 84 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)76 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 85 77 Unallowable operation: psImage input or its data is NULL. 86 < DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)78 <HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO) 87 79 Unallowable operation: kernels is NULL. 88 < DATE><TIME>|<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)80 <HOST>|E|pmSubtractionSolveEquation (FILE:LINENO) 89 81 Unallowable operation: stamps is NULL. 90 <DATE><TIME>|<HOST>|W|psVectorStats 91 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 92 <DATE><TIME>|<HOST>|W|psVectorStats 93 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 94 <DATE><TIME>|<HOST>|W|psVectorStats 95 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 96 <DATE><TIME>|<HOST>|W|psVectorStats 97 WARNING: psVectorStats(): p_psVectorSampleMean() returned an error. 98 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 82 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 99 83 Unallowable operation: psVector solution or its data is NULL. 100 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)84 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 101 85 Unallowable operation: kernels is NULL. 102 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)86 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 103 87 Error: x, -2.000000, is out of range. Must be between -1.000000 and 1.000000. 104 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)88 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 105 89 Error: x, 2.000000, is out of range. Must be between -1.000000 and 1.000000. 106 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)90 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 107 91 Error: y, -2.000000, is out of range. Must be between -1.000000 and 1.000000. 108 < DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)92 <HOST>|E|pmSubtractionKernelImage (FILE:LINENO) 109 93 Error: y, 2.000000, is out of range. Must be between -1.000000 and 1.000000. 110 94 -
trunk/psModules/test/verified/tst_pmImageSubtract.stdout
r4200 r4579 2 2 Testing pmSubtractionKernelsAllocPOIS(2, 3) 3 3 Testing pmSubtractionKernelsAllocPOIS(3, 4) 4 Testing pmSubtractionKernelsAllocISIS(1, 1, 1, 1)5 Testing pmSubtractionKernelsAllocISIS(2, 2, 2, 2)6 Testing pmSubtractionKernelsAllocISIS(2, 3, 4, 5)7 Testing pmSubtractionKernelsAllocISIS(3, 4, 5, 6)8 4 Testing pmSubtractionFindStamps(100, 100, 2, 2, 2) 9 5 Calling with a NULL psImage. Should generate error, return NULL. … … 21 17 Calling with acceptable input parameters, NULL mask. 22 18 Testing pmSubtractionCalculateEquation(): 23 image size is ( 100, 100)24 num stamps is (2, 2). Border is 319 image size is (25, 25) 20 num stamps is (2, 2). Border is 2 25 21 kernel type is PM_SUBTRACTION_KERNEL_POIS. 26 22 Generating stamps... … … 32 28 Calling with acceptable input parameters. Should return TRUE. 33 29 Calling pmSubtractionSolveEquation() with a NULL stamp argument. Should generate error, return FALSE. 34 Calling with pmSubtractionSolveEquation() acceptable input parameters. Should return non-NULL. 35 Calling with pmSubtractionRejectStamps() acceptable input parameters. Should return TRUE. 30 Calling pmSubtractionSolveEquation() with acceptable input parameters. Should return non-NULL. 31 The solution vector is: 32 (1.37) (-0.00) (0.10) (0.08) (0.14) (0.10) (0.01) (0.02) (0.00) (-0.02) (-0.01) (-0.00) (0.00) (0.01) (-0.00) (-0.01) (-0.00) (0.00) (0.02) (-0.01) (-0.01) (0.00) (0.00) (0.00) (-0.02) (0.01) (0.00) (-0.01) (0.00) (-0.00) (0.01) (-0.00) (-0.01) (0.00) (0.01) (0.01) (0.01) (0.01) (-0.00) (-0.01) (-0.00) (0.00) (0.00) (0.00) (0.01) (-0.00) (-0.00) (-0.01) (0.02) (-0.00) (0.00) (-0.00) (-0.00) (-0.01) (-0.01) (0.02) (0.01) (-0.01) (-0.00) (-0.00) (0.00) (0.00) (-0.00) (-0.00) (0.00) (-0.00) (-0.02) (0.01) (0.02) (-0.01) (-0.00) (-0.01) (-0.03) (-0.00) (0.04) (0.01) (-0.00) (-0.03) (0.02) (0.02) (0.01) (-0.03) (-0.03) (-0.02) (0.01) (-0.01) (-0.01) (0.00) (0.00) (0.01) (0.02) (-0.02) (-0.02) (0.02) (0.02) (0.02) (0.03) (-0.03) (-0.03) (0.02) (0.02) (0.02) (0.00) (0.01) (-0.02) (-0.01) (-0.01) (0.02) (-0.03) (0.02) (0.03) (-0.02) (-0.03) (-0.02) (-0.01) (-0.01) (0.00) (0.01) (-0.00) (-0.00) (-0.02) (0.01) (0.02) (-0.01) (-0.01) (-0.01) (-0.02) (0.02) (0.01) (-0.02) (-0.02) (-0.00) (0.02) (-0.01) (-0.02) (0.01) (0.00) (0.01) (-0.02) (0.01) (0.00) (-0.00) (-0.01) (0.00) (0.00) (-0.01) (-0.01) (0.01) (0.01) (0.01) (0.51) 33 Calling pmSubtractionRejectStamps() with acceptable input parameters. Should return TRUE. 36 34 Calling pmSubtractionKernelImage() with NULL solution. Should generate error, return NULL. 37 35 Calling pmSubtractionKernelImage() with NULL kernels. Should generate error, return NULL. … … 40 38 Calling pmSubtractionKernelImage() unallowable y value. Should generate error, return NULL. 41 39 Calling pmSubtractionKernelImage() unallowable y value. Should generate error, return NULL. 42 Calling with pmSubtractionKernelImage() acceptable input parameters. Should return a psImage. 40 Calling pmSubtractionKernelImage() with acceptable input parameters. Should return a psImage. 41 -0.000774 -0.013938 0.010689 -0.013394 -0.015507 42 -0.009241 -0.020300 -0.002732 0.016843 0.010743 43 0.008820 0.015628 1.495404 -0.021095 -0.009788 44 0.003371 -0.001256 0.017835 0.003308 0.008175 45 0.009877 -0.010686 0.014775 0.003368 0.006204 43 46 Testing pmSubtractionCalculateEquation(): 44 image size is ( 100, 100)45 num stamps is (2, 2). Border is 347 image size is (25, 25) 48 num stamps is (2, 2). Border is 2 46 49 kernel type is PM_SUBTRACTION_KERNEL_ISIS. 47 50 Generating stamps... … … 53 56 Calling with acceptable input parameters. Should return TRUE. 54 57 Calling pmSubtractionSolveEquation() with a NULL stamp argument. Should generate error, return FALSE. 55 Calling with pmSubtractionSolveEquation() acceptable input parameters. Should return non-NULL. 56 Calling with pmSubtractionRejectStamps() acceptable input parameters. Should return TRUE. 58 Calling pmSubtractionSolveEquation() with acceptable input parameters. Should return non-NULL. 59 The solution vector is: 60 (0.09) (-0.01) (-0.01) (0.00) (-0.00) (-0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.00) (0.55) 61 Calling pmSubtractionRejectStamps() with acceptable input parameters. Should return TRUE. 57 62 Calling pmSubtractionKernelImage() with NULL solution. Should generate error, return NULL. 58 63 Calling pmSubtractionKernelImage() with NULL kernels. Should generate error, return NULL. … … 61 66 Calling pmSubtractionKernelImage() unallowable y value. Should generate error, return NULL. 62 67 Calling pmSubtractionKernelImage() unallowable y value. Should generate error, return NULL. 63 Calling with pmSubtractionKernelImage() acceptable input parameters. Should return a psImage. 68 Calling pmSubtractionKernelImage() with acceptable input parameters. Should return a psImage. 69 0.031614 0.045997 0.052122 0.045997 0.031614 70 0.045997 0.066926 0.075837 0.066926 0.045997 71 0.052122 0.075837 0.085934 0.075837 0.052122 72 0.045997 0.066926 0.075837 0.066926 0.045997 73 0.031614 0.045997 0.052122 0.045997 0.031614
Note:
See TracChangeset
for help on using the changeset viewer.
