IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4579 for trunk/psModules/test


Ignore:
Timestamp:
Jul 18, 2005, 3:44:48 PM (21 years ago)
Author:
drobbin
Message:

psModules now works with the reorganized version of psLib

Location:
trunk/psModules/test
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/tst_pmImageCombine.c

    r4291 r4579  
    99 *  XXX: Must verify the results internally.  Don't use stdout file.
    1010 *
    11  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-16 23:13:43 $
     11 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-07-19 01:44:48 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    … …  
    266266
    267267    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",
    269269               questionablePixels->n, numImages);
    270270        testStatus = true;
    … …  
    313313        for (psS32 i = 0 ; i < pixelRejects->n ; i++) {
    314314            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);
    316316
    317317            for (psS32 p = 0 ; p < myPixels->n ; p++) {
  • trunk/psModules/test/tst_pmImageSubtract.c

    r4418 r4579  
    1010 *  data.  More work need to be done to verify the results.
    1111 *
    12  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-06-28 23:28:18 $
     12 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-07-19 01:44:48 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    … …  
    337337    // Create a test image and set a single pixel in the center of each stamp.
    338338    psImage *tstImg = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    339     psS32 numStamps = 0;
     339    int numStamps = 0;
    340340    PS_IMAGE_SET_F32(tstImg, 0.0);
    341341    for (psS32 j = 0; j < yNum; j++) {
    … …  
    407407    } else {
    408408        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",
    410410                   stamps->n, numStamps);
    411411            testStatus = true;
    … …  
    443443    } else {
    444444        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",
    446446                   stamps->n, numStamps);
    447447            testStatus = true;
  • trunk/psModules/test/tst_pmObjects01.c

    r4221 r4579  
    1919 * abd never deallocate, no error is generated.
    2020 *
    21  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2005-06-13 19:59:21 $
     21 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2005-07-19 01:44:48 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    … …  
    128128    } else {
    129129        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",
    131131                   tmpModel->params->n, tmpModel->dparams->n);
    132132            testStatus = false;
    … …  
    150150    } else {
    151151        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",
    153153                   tmpModel->params->n, tmpModel->dparams->n);
    154154            testStatus = false;
    … …  
    172172    } else {
    173173        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",
    175175                   tmpModel->params->n, tmpModel->dparams->n);
    176176            testStatus = false;
    … …  
    194194    } else {
    195195        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",
    197197                   tmpModel->params->n, tmpModel->dparams->n);
    198198            testStatus = false;
    … …  
    216216    } else {
    217217        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",
    219219                   tmpModel->params->n, tmpModel->dparams->n);
    220220            testStatus = false;
    … …  
    238238    } else {
    239239        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",
    241241                   tmpModel->params->n, tmpModel->dparams->n);
    242242            testStatus = false;
    … …  
    290290    } else {
    291291        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);
    293293            testStatus = false;
    294294        }
    … …  
    316316
    317317        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);
    319319            testStatus = false;
    320320        }
    … …  
    344344
    345345        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);
    347347            testStatus = false;
    348348        }
    … …  
    370370
    371371        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);
    373373            testStatus = false;
    374374        }
    … …  
    398398
    399399        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);
    401401            testStatus = false;
    402402        }
    … …  
    423423
    424424        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);
    426426            testStatus = false;
    427427        }
    … …  
    477477
    478478/******************************************************************************
    479 test02(): 
     479test02():
    480480// XXX: Must test flat peaks.
    481481// XXX: test 1-by-n and n-by-1 images.
    … …  
    539539        }
    540540        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);
    542542            testStatus = false;
    543543        }
    … …  
    681681    /* XXX: Modify for new pmCullPeaks
    682682        outData = pmCullPeaks(outData, PS_MAX_F32, NULL);
    683      
     683
    684684        if (outData == NULL) {
    685685            printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n");
    … …  
    702702    printf("Calling pmCullPeaks with tiny maxValue and NULL psRegion.\n");
    703703    outData = pmFindImagePeaks(imgData, 0.0);
    704     printf("pmFindImagePeaks found %d peaks\n", outData->n);
     704    printf("pmFindImagePeaks found %ld peaks\n", outData->n);
    705705    /* XXX: Modify for new pmCullPeaks
    706706        outData = pmCullPeaks(outData, 0.0, NULL);
    707      
     707
    708708        if (outData == NULL) {
    709709            printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n");
    … …  
    726726    printf("Calling pmCullPeaks with large maxValue and disjoint psRegion.\n");
    727727    outData = pmFindImagePeaks(imgData, 0.0);
    728     printf("pmFindImagePeaks found %d peaks\n", outData->n);
     728    printf("pmFindImagePeaks found %ld peaks\n", outData->n);
    729729    psRegion tmpRegion = psRegionSet(10000.0, 20000.0, 10000.0, 20000.0);
    730730
    731731    /* XXX: Modify for new pmCullPeaks
    732732        outData = pmCullPeaks(outData, PS_MAX_F32, tmpRegion);
    733      
     733
    734734        if (outData == NULL) {
    735735            printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n");
    … …  
    752752    printf("Calling pmCullPeaks with large maxValue and non-disjoint psRegion.\n");
    753753    outData = pmFindImagePeaks(imgData, 0.0);
    754     printf("pmFindImagePeaks found %d peaks\n", outData->n);
     754    printf("pmFindImagePeaks found %ld peaks\n", outData->n);
    755755    tmpRegion = psRegionSet(-PS_MAX_F32, PS_MAX_F32, -PS_MAX_F32, PS_MAX_F32);
    756756    /* XXX: Modify for new pmCullPeaks
    757757        outData = pmCullPeaks(outData, PS_MAX_F32, tmpRegion);
    758      
     758
    759759        if (outData == NULL) {
    760760            printf("TEST ERROR: pmCullPeaks() returned a non-NULL psList.\n");
    … …  
    11451145            testStatus = false;
    11461146        }
    1147      
     1147
    11481148        printf("----------------------------------------------------------------------------------\n");
    11491149        printf("Calling pmSourceSetPixelsCircle with subImage endCol > numCols.  Should generate error and return NULL.\n");
    … …  
    11561156            testStatus = false;
    11571157        }
    1158      
     1158
    11591159        printf("----------------------------------------------------------------------------------\n");
    11601160        printf("Calling pmSourceSetPixelsCircle with subImage startRow < 0.  Should generate error and return NULL.\n");
    … …  
    11671167            testStatus = false;
    11681168        }
    1169      
     1169
    11701170        printf("----------------------------------------------------------------------------------\n");
    11711171        printf("Calling pmSourceSetPixelsCircle with subImage endRow > numRows.  Should generate error and return NULL.\n");
  • trunk/psModules/test/verified/tst_pmImageCombine.stderr

    r4219 r4579  
    2424---> TESTPOINT PASSED (Test Point Driver{pmCombineImages()} | tst_pmImageCombine.c)
    2525
    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  
    11Testing pmCombineImages(10, 10, 5)
     2Generating a bad pixel in image (1) at (0, 8)
     3Generating a bad pixel in image (3) at (7, 5)
     4Generating a bad pixel in image (1) at (1, 2)
     5Generating a bad pixel in image (2) at (9, 9)
     6Generating a bad pixel in image (1) at (3, 9)
     7Generating a bad pixel in image (2) at (0, 5)
     8Generating a bad pixel in image (1) at (4, 5)
     9Generating a bad pixel in image (1) at (3, 8)
     10Generating a bad pixel in image (2) at (6, 2)
     11Generating a bad pixel in image (2) at (3, 7)
    212Calling with a NULL images.  Should generate error, return NULL.
    313Calling with a long images.  Should generate error, return NULL.
    … …  
    1929Image 2, questionable pixel 3 is (3 7)
    2030Image 3, questionable pixel 0 is (7 5)
    21 Testing pmRejectPixels(10, 10, 5, 1.000000, 1.000000)
     31
     32
     33
     34Calling pmRejectPixels() with acceptable data.  Should generate a psArray.
     35tst_pmImageCombine.c: Image 0 had 0 rejects.
     36tst_pmImageCombine.c: Image 1 had 4 rejects.
     37Image 1, rejected pixel 0 is (0 8)
     38Image 1, rejected pixel 1 is (1 2)
     39Image 1, rejected pixel 2 is (4 5)
     40Image 1, rejected pixel 3 is (3 8)
     41tst_pmImageCombine.c: Image 2 had 3 rejects.
     42Image 2, rejected pixel 0 is (0 5)
     43Image 2, rejected pixel 1 is (6 2)
     44Image 2, rejected pixel 2 is (3 7)
     45tst_pmImageCombine.c: Image 3 had 1 rejects.
     46Image 3, rejected pixel 0 is (7 5)
     47tst_pmImageCombine.c: Image 4 had 0 rejects.
  • trunk/psModules/test/verified/tst_pmImageSubtract.stderr

    r4200 r4579  
    2323\**********************************************************************************/
    2424
    25 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     25<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    2626    Unallowable operation: psImage image or its data is NULL.
    27 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     27<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    2828    Error: xNum is 0 or less.
    29 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     29<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    3030    Error: yNum is 0 or less.
    31 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     31<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    3232    Error: border is 0 or less.
    33 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     33<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    3434    Unallowable operation: psImage image or its data is NULL.
    35 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     35<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    3636    Error: xNum is 0 or less.
    37 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     37<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    3838    Error: yNum is 0 or less.
    39 <DATE><TIME>|<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
     39<HOST>|E|pmSubtractionFindStamps (FILE:LINENO)
    4040    Error: border is 0 or less.
    4141
    … …  
    4848\**********************************************************************************/
    4949
    50 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     50<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    5151    Unallowable operation: stamps is NULL.
    52 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     52<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    5353    Unallowable operation: psImage reference or its data is NULL.
    54 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     54<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    5555    Unallowable operation: psImage input or its data is NULL.
    56 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     56<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    5757    Unallowable operation: kernels is NULL.
    58 <DATE><TIME>|<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)
     58<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)
    5959    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)
    6961    Unallowable operation: psVector solution or its data is NULL.
    70 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
     62<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
    7163    Unallowable operation: kernels is NULL.
    72 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
     64<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
    7365    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)
    7567    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)
    7769    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)
    7971    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)
    8173    Unallowable operation: stamps is NULL.
    82 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     74<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    8375    Unallowable operation: psImage reference or its data is NULL.
    84 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     76<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    8577    Unallowable operation: psImage input or its data is NULL.
    86 <DATE><TIME>|<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
     78<HOST>|E|pmSubtractionCalculateEquation (FILE:LINENO)
    8779    Unallowable operation: kernels is NULL.
    88 <DATE><TIME>|<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)
     80<HOST>|E|pmSubtractionSolveEquation (FILE:LINENO)
    8981    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)
    9983    Unallowable operation: psVector solution or its data is NULL.
    100 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
     84<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
    10185    Unallowable operation: kernels is NULL.
    102 <DATE><TIME>|<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
     86<HOST>|E|pmSubtractionKernelImage (FILE:LINENO)
    10387    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)
    10589    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)
    10791    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)
    10993    Error: y, 2.000000, is out of range.  Must be between -1.000000 and 1.000000.
    11094
  • trunk/psModules/test/verified/tst_pmImageSubtract.stdout

    r4200 r4579  
    22Testing pmSubtractionKernelsAllocPOIS(2, 3)
    33Testing 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)
    84Testing pmSubtractionFindStamps(100, 100, 2, 2, 2)
    95Calling with a NULL psImage.  Should generate error, return NULL.
    … …  
    2117Calling with acceptable input parameters, NULL mask.
    2218Testing pmSubtractionCalculateEquation():
    23     image size is (100, 100)
    24     num stamps is (2, 2).  Border is 3
     19    image size is (25, 25)
     20    num stamps is (2, 2).  Border is 2
    2521   kernel type is PM_SUBTRACTION_KERNEL_POIS.
    2622Generating stamps...
    … …  
    3228Calling with acceptable input parameters.  Should return TRUE.
    3329Calling 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.
     30Calling pmSubtractionSolveEquation() with acceptable input parameters.  Should return non-NULL.
     31The 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)
     33Calling pmSubtractionRejectStamps() with acceptable input parameters.  Should return TRUE.
    3634Calling pmSubtractionKernelImage() with NULL solution.  Should generate error, return NULL.
    3735Calling pmSubtractionKernelImage() with NULL kernels.  Should generate error, return NULL.
    … …  
    4038Calling pmSubtractionKernelImage() unallowable y value.  Should generate error, return NULL.
    4139Calling pmSubtractionKernelImage() unallowable y value.  Should generate error, return NULL.
    42 Calling with pmSubtractionKernelImage() acceptable input parameters.  Should return a psImage.
     40Calling 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
     430.008820 0.015628 1.495404 -0.021095 -0.009788
     440.003371 -0.001256 0.017835 0.003308 0.008175
     450.009877 -0.010686 0.014775 0.003368 0.006204
    4346Testing pmSubtractionCalculateEquation():
    44     image size is (100, 100)
    45     num stamps is (2, 2).  Border is 3
     47    image size is (25, 25)
     48    num stamps is (2, 2).  Border is 2
    4649   kernel type is PM_SUBTRACTION_KERNEL_ISIS.
    4750Generating stamps...
    … …  
    5356Calling with acceptable input parameters.  Should return TRUE.
    5457Calling 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.
     58Calling pmSubtractionSolveEquation() with acceptable input parameters.  Should return non-NULL.
     59The 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)
     61Calling pmSubtractionRejectStamps() with acceptable input parameters.  Should return TRUE.
    5762Calling pmSubtractionKernelImage() with NULL solution.  Should generate error, return NULL.
    5863Calling pmSubtractionKernelImage() with NULL kernels.  Should generate error, return NULL.
    … …  
    6166Calling pmSubtractionKernelImage() unallowable y value.  Should generate error, return NULL.
    6267Calling pmSubtractionKernelImage() unallowable y value.  Should generate error, return NULL.
    63 Calling with pmSubtractionKernelImage() acceptable input parameters.  Should return a psImage.
     68Calling pmSubtractionKernelImage() with acceptable input parameters.  Should return a psImage.
     690.031614 0.045997 0.052122 0.045997 0.031614
     700.045997 0.066926 0.075837 0.066926 0.045997
     710.052122 0.075837 0.085934 0.075837 0.052122
     720.045997 0.066926 0.075837 0.066926 0.045997
     730.031614 0.045997 0.052122 0.045997 0.031614
Note: See TracChangeset for help on using the changeset viewer.