IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6912


Ignore:
Timestamp:
Apr 19, 2006, 3:13:11 PM (20 years ago)
Author:
drobbin
Message:

edited files to reflect changes & patches applied by IFA. Currently fixing testing procedures.

Location:
trunk/psLib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r6874 r6912  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-04-17 22:00:03 $
     11 *  @version $Revision: 1.103 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-04-20 01:13:11 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    733733                                       psImageInterpolateMode mode)
    734734{
    735 
    736735    PS_ASSERT_IMAGE_NON_NULL(input, unexposedValue);
    737     /*    if ( x < input->col0 || x >= (input->col0 + input->numCols) ) {
    738             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    739                 "x-input in psImagePixelInterpolate is outside of image region.\n");
    740             return unexposedValue;
    741         }
    742         if ( y < input->row0 || y >= (input->row0 + input->numRows) ) {
    743             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    744                 "y-input in psImagePixelInterpolate is outside of image region.\n");
    745             return unexposedValue;
    746         }
    747         x -= input->col0;
    748         y -= input->row0;
    749     */
    750736
    751737    #define PSIMAGE_PIXEL_INTERPOLATE_CASE(TYPE)                             \
  • trunk/psLib/test/db/tst_psDB.c

    r6528 r6912  
    99 *  @author Aaron Culliney, MHPCC
    1010 *
    11  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-03-06 22:34:25 $
     11 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-04-20 01:13:11 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    21532153    chgRows = psDBDeleteRows(dbh,table,NULL,10);
    21542154    if(chgRows != 0) {
    2155         psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %ld",
     2155        psError(PS_ERR_UNKNOWN,true,"Deleted rows %ld not as expected %d",
    21562156                chgRows, 0);
    21572157        psDBDropTable(dbh,table);
  • trunk/psLib/test/fits/tst_psFits.c

    r6767 r6912  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-04-04 19:52:47 $
     8*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-04-20 01:13:11 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    391391        // check that the image is associated to the extension moved, i.e.,
    392392        // did we really move to the proper extension?
    393         psImage* image = psFitsReadImage(NULL, fits,region,0);
     393        psImage* image = NULL;
     394        image = psFitsReadImage(fits,region,0);
    394395
    395396        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    424425        // check that the image is associated to the extension moved, i.e.,
    425426        // did we really move to the proper extension?
    426         psImage* image = psFitsReadImage(NULL, fits,region,0);
     427        psImage* image = NULL;
     428        image = psFitsReadImage(fits,region,0);
    427429
    428430        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    526528        // check that the image is associated to the extension moved, i.e.,
    527529        // did we really move to the proper extension?
    528         psImage* image = psFitsReadImage(NULL, fits,region,0);
    529 
     530        psImage* image = NULL;
     531        image = psFitsReadImage(fits,region,0);
    530532        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
    531533            psError(PS_ERR_UNKNOWN, true,
     
    548550        // check that the image is associated to the extension moved, i.e.,
    549551        // did we really move to the proper extension?
    550         psImage* image = psFitsReadImage(NULL, fits,region,0);
     552        psImage* image = NULL;
     553        image = psFitsReadImage(fits,region,0);
    551554
    552555        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    580583        // check that the image is associated to the extension moved, i.e.,
    581584        // did we really move to the proper extension?
    582         psImage* image = psFitsReadImage(NULL, fits,region,0);
     585        psImage* image = NULL;
     586        image = psFitsReadImage(fits,region,0);
    583587
    584588        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    610614        // check that the image is associated to the extension moved, i.e.,
    611615        // did we really move to the proper extension?
    612         psImage* image = psFitsReadImage(NULL, fits,region,0);
     616        psImage* image = NULL;
     617        image = psFitsReadImage(fits,region,0);
    613618
    614619        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    14481453        fits = psFitsOpen(filename,"r"); \
    14491454        psRegion reg = {readM0, readM, readN0, readN}; \
    1450         img = psFitsReadImage(img, fits, reg, 0); \
    1451         img3 = psFitsReadImage(img3, fits, reg, 1); \
     1455        img = psFitsReadImage(fits, reg, 0); \
     1456        img3 = psFitsReadImage(fits, reg, 1); \
    14521457        if (img3 == NULL) { \
    14531458            psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
     
    14771482        img3 = NULL; \
    14781483        psFitsMoveExtNum(fits,1, false); \
    1479         img3 = psFitsReadImage(img3, fits, reg, 0); \
    1480         img = psFitsReadImage(img, fits, reg, 1); \
     1484        img3 = psFitsReadImage(fits, reg, 0); \
     1485        img = psFitsReadImage(fits, reg, 1); \
    14811486        if (img == NULL) { \
    14821487            psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
     
    15301535                          0,0,0,0
    15311536                      };
    1532     if(psFitsReadImage(NULL,NULL,region,0) != NULL) {
     1537    if(psFitsReadImage(NULL,region,0) != NULL) {
    15331538        psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL psFits");
    15341539        return 100;
     
    15961601    psRegion region = {0,0,0,0};
    15971602    fits = psFitsOpen("tmpImages/writeTest.fits","r");
    1598     img = psFitsReadImage(NULL, fits, region, 0);
     1603    img = NULL;
     1604    img = psFitsReadImage(fits, region, 0);
    15991605    if (img == NULL) {
    16001606        psError(PS_ERR_UNKNOWN, true,"Could not read in writeTest.fits.");
  • trunk/psLib/test/imageops/tst_psImageGeomManip.c

    r6805 r6912  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-04-06 04:12:27 $
     8 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-04-20 01:13:11 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    610610        psFitsMoveExtNum(fBiTruthFile, index, false);
    611611        psFitsMoveExtNum(sBiTruthFile, index, false);
    612         fTruth = psFitsReadImage(fTruth, fTruthFile, regionAll, 0);
    613         sTruth = psFitsReadImage(sTruth, sTruthFile, regionAll, 0);
    614         fBiTruth = psFitsReadImage(fBiTruth, fBiTruthFile, regionAll, 0);
    615         sBiTruth = psFitsReadImage(sBiTruth, sBiTruthFile, regionAll, 0);
     612        psFree(fTruth);
     613        psFree(sTruth);
     614        psFree(fBiTruth);
     615        psFree(sBiTruth);
     616        fTruth = NULL;
     617        sTruth = NULL;
     618        fBiTruth = NULL;
     619        sBiTruth = NULL;
     620        fTruth = psFitsReadImage(fTruthFile, regionAll, 0);
     621        sTruth = psFitsReadImage(sTruthFile, regionAll, 0);
     622        fBiTruth = psFitsReadImage(fBiTruthFile, regionAll, 0);
     623        sBiTruth = psFitsReadImage(sBiTruthFile, regionAll, 0);
    616624        if (fTruth == NULL) {
    617625            psError(PS_ERR_UNKNOWN, true,"verified psF32 image failed to be read (%d deg. rotation)",
Note: See TracChangeset for help on using the changeset viewer.