Changeset 6912
- Timestamp:
- Apr 19, 2006, 3:13:11 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/mathtypes/psImage.c (modified) (2 diffs)
-
test/db/tst_psDB.c (modified) (2 diffs)
-
test/fits/tst_psFits.c (modified) (11 diffs)
-
test/imageops/tst_psImageGeomManip.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r6874 r6912 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.10 2$ $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 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 733 733 psImageInterpolateMode mode) 734 734 { 735 736 735 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 */750 736 751 737 #define PSIMAGE_PIXEL_INTERPOLATE_CASE(TYPE) \ -
trunk/psLib/test/db/tst_psDB.c
r6528 r6912 9 9 * @author Aaron Culliney, MHPCC 10 10 * 11 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-0 3-06 22:34:25$11 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-04-20 01:13:11 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 2153 2153 chgRows = psDBDeleteRows(dbh,table,NULL,10); 2154 2154 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", 2156 2156 chgRows, 0); 2157 2157 psDBDropTable(dbh,table); -
trunk/psLib/test/fits/tst_psFits.c
r6767 r6912 6 6 * @author Robert DeSonia, MHPCC 7 7 * 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 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 391 391 // check that the image is associated to the extension moved, i.e., 392 392 // 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); 394 395 395 396 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 424 425 // check that the image is associated to the extension moved, i.e., 425 426 // 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); 427 429 428 430 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 526 528 // check that the image is associated to the extension moved, i.e., 527 529 // 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); 530 532 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { 531 533 psError(PS_ERR_UNKNOWN, true, … … 548 550 // check that the image is associated to the extension moved, i.e., 549 551 // 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); 551 554 552 555 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 580 583 // check that the image is associated to the extension moved, i.e., 581 584 // 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); 583 587 584 588 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 610 614 // check that the image is associated to the extension moved, i.e., 611 615 // 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); 613 618 614 619 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 1448 1453 fits = psFitsOpen(filename,"r"); \ 1449 1454 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); \ 1452 1457 if (img3 == NULL) { \ 1453 1458 psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \ … … 1477 1482 img3 = NULL; \ 1478 1483 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); \ 1481 1486 if (img == NULL) { \ 1482 1487 psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \ … … 1530 1535 0,0,0,0 1531 1536 }; 1532 if(psFitsReadImage(NULL, NULL,region,0) != NULL) {1537 if(psFitsReadImage(NULL,region,0) != NULL) { 1533 1538 psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL psFits"); 1534 1539 return 100; … … 1596 1601 psRegion region = {0,0,0,0}; 1597 1602 fits = psFitsOpen("tmpImages/writeTest.fits","r"); 1598 img = psFitsReadImage(NULL, fits, region, 0); 1603 img = NULL; 1604 img = psFitsReadImage(fits, region, 0); 1599 1605 if (img == NULL) { 1600 1606 psError(PS_ERR_UNKNOWN, true,"Could not read in writeTest.fits."); -
trunk/psLib/test/imageops/tst_psImageGeomManip.c
r6805 r6912 6 6 * @author Robert DeSonia, MHPCC 7 7 * 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 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 610 610 psFitsMoveExtNum(fBiTruthFile, index, false); 611 611 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); 616 624 if (fTruth == NULL) { 617 625 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.
