IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4102


Ignore:
Timestamp:
Jun 3, 2005, 12:45:51 PM (21 years ago)
Author:
gusciora
Message:

SetPixels

File:
1 edited

Legend:

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

    r4097 r4102  
    1919 * abd never deallocate, no error is generated.
    2020 *
    21  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2005-06-03 21:43:17 $
     21 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2005-06-03 22:45:51 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949                              {test03, 001, "pmObjects: pmCullPeaks()", true, false},
    5050                              {test04, 001, "pmObjects: pmSourceLocalSky()", true, false},
    51                               {test06, 001, "pmObjects: pmSourceSetPixelCircle()", true, false},
     51                              {test06, 001, "pmObjects: pmSourceSetPixelsCircle()", true, false},
    5252                              {test05, 001, "pmObjects: pmSourceMoments()", true, false},
    5353                              {test07, 001, "pmObjects: pmMin()", true, false},
     
    11011101
    11021102    printf("----------------------------------------------------------------------------------\n");
    1103     printf("Calling pmSourceSetPixelCircle with NULL psSource.  Should generate error and return NULL.\n");
    1104     rc = pmSourceSetPixelCircle(NULL, imgData, 10.0);
     1103    printf("Calling pmSourceSetPixelsCircle with NULL psSource.  Should generate error and return NULL.\n");
     1104    rc = pmSourceSetPixelsCircle(NULL, imgData, 10.0);
    11051105    if (rc == true) {
    1106         printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1106        printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11071107        testStatus = false;
    11081108    }
     
    11101110
    11111111    printf("----------------------------------------------------------------------------------\n");
    1112     printf("Calling pmSourceSetPixelCircle with NULL psImage.  Should generate error and return NULL.\n");
    1113     rc = pmSourceSetPixelCircle(tmpSource, NULL, 10.0);
     1112    printf("Calling pmSourceSetPixelsCircle with NULL psImage.  Should generate error and return NULL.\n");
     1113    rc = pmSourceSetPixelsCircle(tmpSource, NULL, 10.0);
    11141114    if (rc == true) {
    1115         printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
    1116         testStatus = false;
    1117     }
    1118 
    1119     printf("----------------------------------------------------------------------------------\n");
    1120     printf("Calling pmSourceSetPixelCircle with wrong type psImage.  Should generate error and return NULL.\n");
    1121     rc = pmSourceSetPixelCircle(tmpSource, imgDataF64, 10.0);
     1115        printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
     1116        testStatus = false;
     1117    }
     1118
     1119    printf("----------------------------------------------------------------------------------\n");
     1120    printf("Calling pmSourceSetPixelsCircle with wrong type psImage.  Should generate error and return NULL.\n");
     1121    rc = pmSourceSetPixelsCircle(tmpSource, imgDataF64, 10.0);
    11221122    if (rc == true) {
    1123         printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
    1124         testStatus = false;
    1125     }
    1126 
    1127     printf("----------------------------------------------------------------------------------\n");
    1128     printf("Calling pmSourceSetPixelCircle with radius < 0.0.  Should generate error and return NULL.\n");
    1129     rc = pmSourceSetPixelCircle(tmpSource, imgData, -10.0);
     1123        printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
     1124        testStatus = false;
     1125    }
     1126
     1127    printf("----------------------------------------------------------------------------------\n");
     1128    printf("Calling pmSourceSetPixelsCircle with radius < 0.0.  Should generate error and return NULL.\n");
     1129    rc = pmSourceSetPixelsCircle(tmpSource, imgData, -10.0);
    11301130    if (rc == true) {
    1131         printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1131        printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11321132        testStatus = false;
    11331133    }
     
    11351135    /* XXX: Commented away since the EAM mods no longer produced errors.
    11361136        printf("----------------------------------------------------------------------------------\n");
    1137         printf("Calling pmSourceSetPixelCircle with subImage startCol < 0.  Should generate error and return NULL.\n");
     1137        printf("Calling pmSourceSetPixelsCircle with subImage startCol < 0.  Should generate error and return NULL.\n");
    11381138        tmpSource->peak->x = (psF32) (TST06_NUM_ROWS / 2);
    11391139        tmpSource->peak->y = (psF32) (TST06_NUM_COLS / 2);
    11401140        tmpSource->peak->x = 1;
    1141         rc = pmSourceSetPixelCircle(tmpSource, imgData, 10.0);
     1141        rc = pmSourceSetPixelsCircle(tmpSource, imgData, 10.0);
    11421142        if (rc == true) {
    1143             printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1143            printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11441144            testStatus = false;
    11451145        }
    11461146     
    11471147        printf("----------------------------------------------------------------------------------\n");
    1148         printf("Calling pmSourceSetPixelCircle with subImage endCol > numCols.  Should generate error and return NULL.\n");
     1148        printf("Calling pmSourceSetPixelsCircle with subImage endCol > numCols.  Should generate error and return NULL.\n");
    11491149        tmpSource->peak->x = (psF32) (TST06_NUM_ROWS / 2);
    11501150        tmpSource->peak->y = (psF32) (TST06_NUM_COLS / 2);
    11511151        tmpSource->peak->x = TST06_NUM_COLS;
    1152         rc = pmSourceSetPixelCircle(tmpSource, imgData, 10.0);
     1152        rc = pmSourceSetPixelsCircle(tmpSource, imgData, 10.0);
    11531153        if (rc == true) {
    1154             printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1154            printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11551155            testStatus = false;
    11561156        }
    11571157     
    11581158        printf("----------------------------------------------------------------------------------\n");
    1159         printf("Calling pmSourceSetPixelCircle with subImage startRow < 0.  Should generate error and return NULL.\n");
     1159        printf("Calling pmSourceSetPixelsCircle with subImage startRow < 0.  Should generate error and return NULL.\n");
    11601160        tmpSource->peak->x = (psF32) (TST06_NUM_ROWS / 2);
    11611161        tmpSource->peak->y = (psF32) (TST06_NUM_COLS / 2);
    11621162        tmpSource->peak->y = 1;
    1163         rc = pmSourceSetPixelCircle(tmpSource, imgData, 10.0);
     1163        rc = pmSourceSetPixelsCircle(tmpSource, imgData, 10.0);
    11641164        if (rc == true) {
    1165             printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1165            printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11661166            testStatus = false;
    11671167        }
    11681168     
    11691169        printf("----------------------------------------------------------------------------------\n");
    1170         printf("Calling pmSourceSetPixelCircle with subImage endRow > numRows.  Should generate error and return NULL.\n");
     1170        printf("Calling pmSourceSetPixelsCircle with subImage endRow > numRows.  Should generate error and return NULL.\n");
    11711171        tmpSource->peak->x = (psF32) (TST06_NUM_ROWS / 2);
    11721172        tmpSource->peak->y = (psF32) (TST06_NUM_COLS / 2);
    11731173        tmpSource->peak->y = TST06_NUM_ROWS;
    1174         rc = pmSourceSetPixelCircle(tmpSource, imgData, 10.0);
     1174        rc = pmSourceSetPixelsCircle(tmpSource, imgData, 10.0);
    11751175        if (rc == true) {
    1176             printf("TEST ERROR: pmSourceSetPixelCircle() returned TRUE.\n");
     1176            printf("TEST ERROR: pmSourceSetPixelsCircle() returned TRUE.\n");
    11771177            testStatus = false;
    11781178        }
    11791179    */
    11801180    printf("----------------------------------------------------------------------------------\n");
    1181     printf("Calling pmSourceSetPixelCircle with valid data.\n");
     1181    printf("Calling pmSourceSetPixelsCircle with valid data.\n");
    11821182    tmpSource->peak->x = (psF32) (TST06_NUM_ROWS / 2);
    11831183    tmpSource->peak->y = (psF32) (TST06_NUM_COLS / 2);
    1184     rc = pmSourceSetPixelCircle(tmpSource, imgData, 10.0);
     1184    rc = pmSourceSetPixelsCircle(tmpSource, imgData, 10.0);
    11851185
    11861186    if (rc == false) {
    1187         printf("TEST ERROR: pmSourceSetPixelCircle() returned FALSE.\n");
     1187        printf("TEST ERROR: pmSourceSetPixelsCircle() returned FALSE.\n");
    11881188        testStatus = false;
    11891189    } else {
    1190         // XXX: Test correctness of the various psSetPixelCircle members.
     1190        // XXX: Test correctness of the various psSetPixelsCircle members.
    11911191    }
    11921192
Note: See TracChangeset for help on using the changeset viewer.