IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6770


Ignore:
Timestamp:
Apr 4, 2006, 12:04:46 PM (20 years ago)
Author:
drobbin
Message:

Edited several functions concerning subimage v. parent issue.

Location:
trunk/psLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelExtract.c

    r6750 r6770  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-04-01 02:43:57 $
     10 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-04-04 22:04:45 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    103103    }
    104104
    105     psVectorRecycle(out, input->numCols, input->type.type);
     105    out = psVectorRecycle(out, input->numCols, input->type.type);
    106106
    107107    switch (input->type.type) {
     
    233233    }
    234234
    235     psVectorRecycle(out, input->numRows, input->type.type);
     235    out = psVectorRecycle(out, input->numRows, input->type.type);
    236236
    237237    switch (input->type.type) {
  • trunk/psLib/test/astro/verified/tst_psEarthOrientation.stderr

    r5657 r6770  
    55\**********************************************************************************/
    66
     7<DATE><TIME>|<HOST>|I|testAberration
     8    Following should generate error message
    79<DATE><TIME>|<HOST>|E|psAberration (FILE:LINENO)
    810    Unallowable operation: actual is NULL.
     11<DATE><TIME>|<HOST>|I|testAberration
     12    Following should generate error message
    913<DATE><TIME>|<HOST>|E|psAberration (FILE:LINENO)
    1014    Unallowable operation: direction is NULL.
    11 <DATE><TIME>|<HOST>|E|testAberration (FILE:LINENO)
    12     psGravityDeflection returned incorrect values.
    13 Return value mismatch: expected 0, got 3
    14 ---> TESTPOINT FAILED (psEarthOrientation{psAberration()} | tst_psEarthOrientation.c)
     15
     16---> TESTPOINT PASSED (psEarthOrientation{psAberration()} | tst_psEarthOrientation.c)
    1517
    1618/***************************** TESTPOINT ******************************************\
     
    3335\**********************************************************************************/
    3436
     37<DATE><TIME>|<HOST>|I|testEOCPrecession
     38    Following should generate error message
    3539<DATE><TIME>|<HOST>|E|psEOC_PrecessionModel (FILE:LINENO)
    3640    Unallowable operation: time is NULL.
     41<DATE><TIME>|<HOST>|I|testEOCPrecession
     42    Following should generate error message
    3743<DATE><TIME>|<HOST>|E|psEOC_PrecessionModel (FILE:LINENO)
    3844    Invalid time input.  Time cannot be of type UT1.
     45
     46---> TESTPOINT PASSED (psEarthOrientation{psEOCPrecession()} | tst_psEarthOrientation.c)
     47
     48/***************************** TESTPOINT ******************************************\
     49*             TestFile: tst_psEarthOrientation.c                                   *
     50*            TestPoint: psEarthOrientation{psEOCPrecessionCorr()}                  *
     51*             TestType: Positive                                                   *
     52\**********************************************************************************/
     53
     54<DATE><TIME>|<HOST>|I|testEOCPrecessionCorr
     55    Following should generate error message
    3956<DATE><TIME>|<HOST>|E|psEOC_PrecessionCorr (FILE:LINENO)
    4057    Unallowable operation: time is NULL.
     58<DATE><TIME>|<HOST>|I|testEOCPrecessionCorr
     59    Following should generate error message
    4160<DATE><TIME>|<HOST>|E|psEOC_PrecessionCorr (FILE:LINENO)
    4261    Error: bulletin, 3, is out of range.  Must be between 0 and 1.
    4362
    44 ---> TESTPOINT PASSED (psEarthOrientation{psEOCPrecession()} | tst_psEarthOrientation.c)
     63---> TESTPOINT PASSED (psEarthOrientation{psEOCPrecessionCorr()} | tst_psEarthOrientation.c)
    4564
    4665/***************************** TESTPOINT ******************************************\
     
    5069\**********************************************************************************/
    5170
    52 <DATE><TIME>|<HOST>|E|psEOC_PolarTideCorr (FILE:LINENO)
     71<DATE><TIME>|<HOST>|I|testEOCPolar
     72    Following should generate error message
     73<DATE><TIME>|<HOST>|E|psEOC_GetPolarMotion (FILE:LINENO)
    5374    Unallowable operation: time is NULL.
     75<DATE><TIME>|<HOST>|I|testEOCPolar
     76    Following should generate error message
    5477<DATE><TIME>|<HOST>|E|psEOC_GetPolarMotion (FILE:LINENO)
    5578    Unallowable operation: time is NULL.
     
    5982/***************************** TESTPOINT ******************************************\
    6083*             TestFile: tst_psEarthOrientation.c                                   *
     84*            TestPoint: psEarthOrientation{psEOCPolarTide()}                       *
     85*             TestType: Positive                                                   *
     86\**********************************************************************************/
     87
     88<DATE><TIME>|<HOST>|I|testEOCPolarTide
     89    Following should generate error message
     90<DATE><TIME>|<HOST>|E|psEOC_PolarTideCorr (FILE:LINENO)
     91    Unallowable operation: time is NULL.
     92
     93---> TESTPOINT PASSED (psEarthOrientation{psEOCPolarTide()} | tst_psEarthOrientation.c)
     94
     95/***************************** TESTPOINT ******************************************\
     96*             TestFile: tst_psEarthOrientation.c                                   *
    6197*            TestPoint: psEarthOrientation{psEOCNutation()}                        *
    6298*             TestType: Positive                                                   *
    6399\**********************************************************************************/
    64100
     101<DATE><TIME>|<HOST>|I|testEOCNutation
     102    Following should generate error message
    65103<DATE><TIME>|<HOST>|E|psEOC_NutationCorr (FILE:LINENO)
    66104    Unallowable operation: time is NULL.
    67 <DATE><TIME>|<HOST>|E|psEOC_NutationCorr (FILE:LINENO)
    68     Invalid time input.  Time cannot be of type UT1.
    69105
    70106---> TESTPOINT PASSED (psEarthOrientation{psEOCNutation()} | tst_psEarthOrientation.c)
     
    76112\**********************************************************************************/
    77113
     114<DATE><TIME>|<HOST>|I|testSphereRot_TEOtoCEO
     115    Following should generate error message
     116<DATE><TIME>|<HOST>|E|psSphereRot_TEOtoCEO (FILE:LINENO)
     117    Unallowable operation: time is NULL.
    78118
    79119---> TESTPOINT PASSED (psEarthOrientation{psSphereRot_TEOtoCEO()} | tst_psEarthOrientation.c)
     
    85125\**********************************************************************************/
    86126
     127<DATE><TIME>|<HOST>|I|testSphereRot_CEOtoGCRS
     128    Following should generate error message
    87129<DATE><TIME>|<HOST>|E|psSphereRot_CEOtoGCRS (FILE:LINENO)
    88130    Unallowable operation: pole is NULL.
     
    96138\**********************************************************************************/
    97139
     140<DATE><TIME>|<HOST>|I|testSphereRot_ITRStoTEO
     141    Following should generate error message
    98142<DATE><TIME>|<HOST>|E|psSphereRot_ITRStoTEO (FILE:LINENO)
    99143    Unallowable operation: motion is NULL.
     
    101145---> TESTPOINT PASSED (psEarthOrientation{psSphereRRot_ITRStoTEO()} | tst_psEarthOrientation.c)
    102146
    103 <DATE><TIME>|<HOST>|E|p_runTestSuite (FILE:LINENO)
    104     One or more tests failed
     147/***************************** TESTPOINT ******************************************\
     148*             TestFile: tst_psEarthOrientation.c                                   *
     149*            TestPoint: psEarthOrientation{psSphereRotPrecess()}                   *
     150*             TestType: Positive                                                   *
     151\**********************************************************************************/
     152
     153<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     154    From time is later than to time in psSpherePrecess.
     155<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     156    From time is later than to time in psSpherePrecess.
     157<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     158    From time is later than to time in psSpherePrecess.
     159<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     160    From time is later than to time in psSpherePrecess.
     161<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     162    From time is later than to time in psSpherePrecess.
     163<DATE><TIME>|<HOST>|W|psSpherePrecess (FILE:LINENO)
     164    From time is later than to time in psSpherePrecess.
     165<DATE><TIME>|<HOST>|I|testSphereRotPrecess
     166    Following should generate an error message
     167<DATE><TIME>|<HOST>|E|psSpherePrecess (FILE:LINENO)
     168    Error: mode, 10, is out of range.  Must be between 0 and 3.
     169<DATE><TIME>|<HOST>|I|testSphereRotPrecess
     170    Following should generate an error message
     171<DATE><TIME>|<HOST>|E|psSpherePrecess (FILE:LINENO)
     172    Invalid time inputs.  fromTime & toTime cannot both be NULL.
     173
     174---> TESTPOINT PASSED (psEarthOrientation{psSphereRotPrecess()} | tst_psEarthOrientation.c)
     175
  • trunk/psLib/test/astro/verified/tst_psEarthOrientation.stdout

    r5657 r6770  
    11
    2 Sphere Difference  =  r,d  =  5.284231132663e-05, 3.676277340525e-05
    3  -- resultCube = x,y,z = -0.3596051297757, 0.5556035294057, 0.7496591683899  --
    4  -- expectedCube = x,y,z = -0.3596338806905, 0.5555192509817, 0.7497078321908  --
     2 -- resultCube = x,y,z =     -0.359633878262,      0.5555192580977,    0.7497078280829  --
     3 -- expectedCube = x,y,z =   -0.3596338806905,     0.5555192509817,    0.7497078321908  --
     4Cube Difference  =  x,y,z  = -2.428477918759e-09, -7.116060185552e-09, 4.107927775721e-09
    55
    6 Cube Difference  =  x,y,z  = -2.87509148123e-05, -8.427842401337e-05, 4.866380096979e-05
     6   The great circle angular distance between expected & result = 0
     7sunCube = x,y,z = 0.9820293796219, 0.1731564131522, 0.0750676637684
     8sunSphere  = r, d = 0.1745310859793, 0.0751383461293
     9 Theta = 1.772849258423
     10 r0 = -7.3028651010049865723e+11
     11 Theta = -1.913704437867e-08
     12 phi = 7.882970755914e-09
     13 -- actualCube = x,y,z = -0.3596195125758, 0.5555613903456, 0.7496834983725  --
     14 -- resultCube2= x,y,z = -0.3596194987327, 0.5555613922666, 0.7496835035894  --
     15 -- expectCube = x,y,z = -0.3596194976029, 0.5555613950298, 0.7496835020836  --
     16
     17expect-actual=  x,y,z  = 1.497289375818e-08, 4.684221899254e-09, 3.711128404582e-09
     18expect-result=  x,y,z  = 1.129748294915e-09, 2.763238526882e-09, -1.505794156031e-09
     19result-actual=  x,y,z  = 1.384314546327e-08, 1.920983372372e-09, 5.216922560614e-09
     20The apparent output sphere = r,d = -1.91370443936e-08, 7.88297072063e-09
     21The expected output sphere = r,d = -2.283899158684e-08, 5.607657893592e-09
    722
    823
    9 Actual r,d = 2.145277004504,0.8475837032218    Apparent r,d = 2.145277004504245, 0.8475837032208979
    10 Sphere Difference  =  r,d  =  -1.887379141863e-13, 9.220402219512e-13
    11  -- resultCube = x,y,z = -0.3596195125763, 0.5555613903461, 0.7496834983719  --
    12  -- actualCube = x,y,z = -0.3596195125758, 0.5555613903456, 0.7496834983725  --
    13  -- expectedCube = x,y,z = -0.3596194976029, 0.5555613950298, 0.7496835020836  --
     24  PrecessionModel output = x,y,s = 0.0002857180158654,  2.394794340094e-05,  -1.39707087662e-08
     25  Expected output        = x,y,s = 0.0002857175590089, 2.396873937773e-05,  -1.39700664579e-08
     26  A difference of:                 4.568564834165e-10, -2.079597679632e-08, -6.423082970265e-13
    1427
    15 Precession Model output = x,y,s = 58931469, 4942375.1, -1.4563071e+14
    16 Expected output = x,y,s = 0.0002857175590089, 2.396873937773e-05, -1.39700664579e-08
     28PrecessionCorr output (IERSA) = x,y,s = 1.947907872704e-10,  1.721455914333e-10, 0
     29PrecessionCorr output (IERSB) = x,y,s = 3.054252649662e-10, -1.396865617981e-10, 0
     30Expected output               = x,y,s = 3.052243007204e-10, -1.394413392358e-10, 0
     31          A difference of:              2.00964245826e-13,  -2.452225622468e-13, 0
    1732
    18 Precession Correction output (IERSA) = x,y,s = 0.25564256, 0.25564256, -0.34299142
    19 Precession Correction output (IERSB) = x,y,s = 0.25564256, 0.25564256, -0.34298841
    20 Expected output = x,y,s = 0.06295703125, -0.02876184082031, 0
    21 
    22  -- sphere = r=0.25564256, d=0.25564256
    23  -- Eop = x=-0.00052201938, y=0.00015531693, s=-2.8841699e-05
    24 
    25  -- PolarMotion = x=0.2551205394888, y=0.2557978757764, s=-0.3430172541992
    26   -- NutationCorr = x,y,s = 65064305.90552, -31402.7500932, 7.399292756179e-12
    27 
    28   -- Output Earthpole = x,y,s = 65064306.16064, -31402.49429532, -0.3430172541918
    29   -- Expected Earthpole = x,y,s = -0.1327535377407, 0.435943631974, -4.237696586358e-10
    30 Nutation Correction output = x,y,s = 1.1740641e+08, -85355.474, 1.335034e-11
     33  Expected sphere rotation    = -1.198452240676e-05, 0.0001428589335861, 1.219119351891e-10
     34  Result sphere rotation      = -1.197390297815e-05, 0.0001428591620297, 6.985354311319e-09
     35     Difference         =        1.061942860161e-08, 2.284436096778e-10, 6.86344237613e-09
    3136
    3237
    33 The Value of T is = 2452730.562496030238
     38<<Expected out       = x,y,z = -0.3598480726985, 0.5555012823608, 0.7496183628158
     39<<Resulting out      = x,y,z = -0.3598480654139, 0.5555013032211, 0.7496183508543
     40     Difference         =      7.284623182446e-09, 2.086025363557e-08, -1.196147370042e-08
    3441
    35 The Value of theta is = 7474.398075968
    36 Output sphere rotation = 0, 0, 0.9625401009478, 0.2711393628144
    37 Input cube = x,y,z = -0.3596195125758, 0.5555613903456, 0.7496834983725
    38 Output cube = x,y,z = 0.5967271497347, -0.286166666538, 0.7496834983725
    39 Output sphere rotation = 1.198437080989e-05,-0.0001428587808888,-6.985033157173e-09,0.9999999897239
    40 Expected sphere rotation = -1.198452240676e-05,0.0001428589335861,1.219119351891e-10,-0.9999999897238
     42GREAT CIRCLE DIFFERENCE = 2.107342425545e-08
     43  <>PolarMotion output (IERSA)   = x,y,s = -6.454354851396e-07, 2.11261166896e-06, 0
     44  <>PolarMotion output (IERSB)   = x,y,s = -6.453776503973e-07,  2.112824918305e-06, 0
    4145
    42   Sphere -test- has values r,d = -1.7394212e-08, 0.00028571756
    43 Output sphere rotation = 0.2157736658448,-0.06475858774092,-0.01434342985264,0.9741880293156
    44 Expected sphere rotation = -1.056757184866e-06,3.218036562932e-07,-3.35801958072e-12,-0.9999999999994
     46MJD check = 52730.06287037
    4547
    46   Sphere -test- has values r,d = 6.226856, 0.12027398
     48  PolarMotion + NutationCorr out = x,y,s = -6.453261916639e-07, 2.113939092499e-06, -7.396173489511e-12
     49  Expected output                = x,y,s = -6.43607313124e-07,  2.113514369736e-06, -7.396175813246e-12
     50                     Difference  = x,y,s = -1.718878539849e-09, 4.247227629193e-10,  2.323735388396e-18
     51
     52PolarTideCorr output = x,y,s = 5.531121932435e-11, 1.140859150964e-09, -2.660715561012e-05
     53
     54MJD check = 52730.06287037
     55Nutation Correction output = x,y,s = -3.852485875525e-12, -2.66849571647e-11, -7.396173489511e-12
     56
     57
     58  Output Rotation = q0,q1,q2,q3 = 0, 0, -0.9625401013456, 0.2711393614023
     59
     60  Output sphere rotation   = -1.198437080989e-05, 0.0001428587808888, 6.985033157173e-09, 0.9999999897239
     61  Expected sphere rotation = -1.198452240676e-05, 0.0001428589335861, 1.219119351891e-10, -0.9999999897238
     62  difference:                 1.515968626689e-10, -1.526973275471e-10, 6.863121221984e-09
     63
     64  Output cube = x,y,z = -0.3598480648445,  0.555501287526,    0.7496183627584
     65Expected cube = x,y,z = -0.3598480726985,  0.5555012823608,   0.7496183628158
     66  A difference of:    -7.85402010095e-09, -5.16518539051e-09, 5.738010067091e-11
     67
     68   The great circle angular distance between expected & result = 0
     69
     70  Output sphere rotation   = -1.056757184868e-06, 3.218036565618e-07, -3.410955728293e-13, 0.9999999999994
     71  Expected sphere rotation = -1.056757184866e-06, 3.218036562932e-07, -3.35801958072e-12, -0.9999999999994
     72
     73  Cube -test- has x,y,z =     0.01698577184911, -0.6616538927903, 0.7496169753348
     74
     75  Cube -expected- has x,y,z = 0.0169857718531,  -0.6616538927902, 0.7496169753348
     76Great circle difference of:  0
  • trunk/psLib/test/imageops/tst_psImagePixelExtract.c

    r6750 r6770  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-04-01 02:43:57 $
     8*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-04-04 22:04:46 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    773773    int num = 0;
    774774
    775     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     775    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
    776776    out = psImageRow(NULL, image, num);
    777777    if (out != NULL) {
    778778        return 1;
    779779    }
    780 
     780    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     781    out = psImageCol(NULL, image, num);
     782    if (out != NULL) {
     783        return 1;
     784    }
    781785
    782786    image = psImageAlloc(3, 3, PS_TYPE_F64);
     787
     788    //Test for invalid row0.
     789    *(psS32*)&(image->row0) = -1;
     790    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     791    out = psImageRow(NULL, image, num);
     792    if (out != NULL) {
     793        return 2;
     794    }
     795    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     796    out = psImageCol(NULL, image, num);
     797    if (out != NULL) {
     798        return 2;
     799    }
     800
     801    //Test for invalid col0.
    783802    *(psS32*)&(image->row0) = 5;
     803    *(psS32*)&(image->col0) = -1;
     804    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     805    out = psImageRow(NULL, image, num);
     806    if (out != NULL) {
     807        return 3;
     808    }
     809    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     810    out = psImageCol(NULL, image, num);
     811    if (out != NULL) {
     812        return 3;
     813    }
     814
     815    //Test for invalid numRows
    784816    *(psS32*)&(image->col0) = 10;
     817    *(int*)&(image->numRows) = -1;
     818    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     819    out = psImageRow(NULL, image, num);
     820    if (out != NULL) {
     821        return 4;
     822    }
     823    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     824    out = psImageCol(NULL, image, num);
     825    if (out != NULL) {
     826        return 4;
     827    }
     828    //Test for invalid numCols
     829    *(int*)&(image->numRows) = 3;
     830    *(int*)&(image->numCols) = -1;
     831    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     832    out = psImageRow(NULL, image, num);
     833    if (out != NULL) {
     834        return 5;
     835    }
     836    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     837    out = psImageCol(NULL, image, num);
     838    if (out != NULL) {
     839        return 5;
     840    }
     841    //Test for invalid row/col number specified.
     842    *(int*)&(image->numCols) = 3;
     843    num = 8;
     844    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     845    out = psImageRow(NULL, image, num);
     846    if (out != NULL) {
     847        return 6;
     848    }
     849    num = 13;
     850    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     851    out = psImageCol(NULL, image, num);
     852    if (out != NULL) {
     853        return 6;
     854    }
     855    num = 3;
     856    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     857    out = psImageRow(NULL, image, num);
     858    if (out != NULL) {
     859        return 7;
     860    }
     861    num = 8;
     862    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     863    out = psImageCol(NULL, image, num);
     864    if (out != NULL) {
     865        return 7;
     866    }
     867    num = -10;
     868    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for row)");
     869    out = psImageRow(NULL, image, num);
     870    if (out != NULL) {
     871        return 8;
     872    }
     873    num = -14;
     874    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message(for col)");
     875    out = psImageCol(NULL, image, num);
     876    if (out != NULL) {
     877        return 8;
     878    }
     879
     880    //Test valid cases.
     881    image->col0 = 10;
     882    image->row0 = 5;
     883    *(int*)&(image->numRows) = 3;
     884    *(int*)&(image->numCols) = 3;
    785885    image->data.F64[0][0] = 666.666;
    786886    image->data.F64[1][0] = 66.6;
     
    792892    image->data.F64[1][2] = 666.66;
    793893    image->data.F64[2][2] = 66.66;
    794 
    795 
    796 
     894    num = 7;
     895    out = psImageRow(out, image, num);
     896    if (out == NULL) {
     897        psError(PS_ERR_BAD_PARAMETER_NULL, false,
     898                "psImageRow failed to return correct psVector output.\n");
     899        return 10;
     900    } else {
     901        psFree(out);
     902        out = NULL;
     903    }
     904    num = 11;
     905    out = psImageCol(NULL, image, num);
     906    if (out == NULL) {
     907        psError(PS_ERR_BAD_PARAMETER_NULL, false,
     908                "psImageCol failed to return correct psVector output.\n");
     909        return 10;
     910    } else {
     911        psFree(out);
     912        out = NULL;
     913    }
     914
     915    num = -3;
     916    out = psImageRow(out, image, num);
     917    if (out == NULL) {
     918        psError(PS_ERR_BAD_PARAMETER_NULL, false,
     919                "psImageRow failed to return correct psVector output.\n");
     920        return 10;
     921    } else {
     922        psFree(out);
     923        out = NULL;
     924    }
     925    num = -1;
     926    out = psImageCol(NULL, image, num);
     927    if (out == NULL) {
     928        psError(PS_ERR_BAD_PARAMETER_NULL, false,
     929                "psImageCol failed to return correct psVector output.\n");
     930        return 10;
     931    }
    797932    psFree(out);
    798933    psFree(image);
  • trunk/psLib/test/imageops/verified/tst_psImagePixelExtract.stderr

    r6750 r6770  
    145145
    146146<DATE><TIME>|<HOST>|I|testImageRowColError
    147     Following should generate error message
    148 <DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
    149     Can not operate on a NULL psImage.
     147    Following should generate error message(for row)
     148<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     149    Can not operate on a NULL psImage.
     150<DATE><TIME>|<HOST>|I|testImageRowColError
     151    Following should generate error message(for col)
     152<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     153    Can not operate on a NULL psImage.
     154<DATE><TIME>|<HOST>|I|testImageRowColError
     155    Following should generate error message(for row)
     156<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     157    psImage input is invalid.  row0 cannot be negative.
     158<DATE><TIME>|<HOST>|I|testImageRowColError
     159    Following should generate error message(for col)
     160<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     161    psImage input is invalid.  row0 cannot be negative.
     162<DATE><TIME>|<HOST>|I|testImageRowColError
     163    Following should generate error message(for row)
     164<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     165    psImage input is invalid.  col0 cannot be negative.
     166<DATE><TIME>|<HOST>|I|testImageRowColError
     167    Following should generate error message(for col)
     168<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     169    psImage input is invalid.  col0 cannot be negative.
     170<DATE><TIME>|<HOST>|I|testImageRowColError
     171    Following should generate error message(for row)
     172<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     173    psImage input is invalid.  numRows must be greater than 0.
     174<DATE><TIME>|<HOST>|I|testImageRowColError
     175    Following should generate error message(for col)
     176<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     177    psImage input is invalid.  numRows must be greater than 0.
     178<DATE><TIME>|<HOST>|I|testImageRowColError
     179    Following should generate error message(for row)
     180<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     181    psImage input is invalid.  numCols must be greater than 0.
     182<DATE><TIME>|<HOST>|I|testImageRowColError
     183    Following should generate error message(for col)
     184<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     185    psImage input is invalid.  numCols must be greater than 0.
     186<DATE><TIME>|<HOST>|I|testImageRowColError
     187    Following should generate error message(for row)
     188<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     189    Specified row number is out of range for specified image.
     190<DATE><TIME>|<HOST>|I|testImageRowColError
     191    Following should generate error message(for col)
     192<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     193    Specified column number is out of range for specified image.
     194<DATE><TIME>|<HOST>|I|testImageRowColError
     195    Following should generate error message(for row)
     196<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     197    Specified row number is out of range for specified image.
     198<DATE><TIME>|<HOST>|I|testImageRowColError
     199    Following should generate error message(for col)
     200<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     201    Specified column number is out of range for specified image.
     202<DATE><TIME>|<HOST>|I|testImageRowColError
     203    Following should generate error message(for row)
     204<DATE><TIME>|<HOST>|E|psImageRow (FILE:LINENO)
     205    Specified row number is out of range for specified image.
     206<DATE><TIME>|<HOST>|I|testImageRowColError
     207    Following should generate error message(for col)
     208<DATE><TIME>|<HOST>|E|psImageCol (FILE:LINENO)
     209    Specified column number is out of range for specified image.
    150210
    151211---> TESTPOINT PASSED (psImage{testImageRowColError} | tst_psImagePixelExtract.c)
Note: See TracChangeset for help on using the changeset viewer.