Changeset 42822 for trunk/psLib/test/imageops/tap_psImageGeomManip.c
- Timestamp:
- May 8, 2025, 4:42:12 PM (14 months ago)
- Location:
- trunk/psLib/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test
- Property svn:ignore
-
old new 6 6 *.da 7 7 gmon.out 8 test.00.jpg 9 test.01.jpg 10 test.02.jpg 11 test.03.jpg 12 test.04.jpg 13 test.05.jpg 14 test.06.jpg 15 test.07.jpg 16 test.08.jpg 17 test.09.jpg 18 test.10.jpg 19 test.11.jpg 20 test.12.jpg 21 test.im.fits 22 test.mk.fits 23 test.sm1.fits 24 test.sm2.fits 25 test.sm3.fits 26 test.sm4.fits 27 tmpImages 28 tst_psTrace02_OUT
-
- Property svn:ignore
-
trunk/psLib/test/imageops
- Property svn:ignore
-
old new 38 38 tap_psImageMapFit 39 39 tap_psImageMapFit2 40 tap_psImageCovariance 41 tap_psImageSmoothMask_Threaded 42 test-suite.log
-
- Property svn:ignore
-
trunk/psLib/test/imageops/tap_psImageGeomManip.c
r21169 r42822 528 528 529 529 psImage *in; 530 psImage *out;531 psImage *out2;532 530 psS32 rows = 64; 533 531 psS32 cols = 64; … … 544 542 // Verify the returned psImage structure pointer is NULL and program 545 543 // execution doesn't stop, if input parameter input is NULL. 546 out2 = psImageRoll(NULL,NULL,0,0);544 psImage *out2 = psImageRoll(NULL,NULL,0,0); 547 545 if (out2 != NULL) { 548 546 psError(PS_ERR_UNKNOWN, true,"psImageRoll did not return NULL though input image was NULL!?"); … … 551 549 552 550 psFree(in); 553 psFree(out );554 555 #define testRollType(DATATYPE)\551 psFree(out2); 552 553 #define testRollType(DATATYPE) { \ 556 554 in = psImageAlloc(rows1,cols1,PS_TYPE_##DATATYPE); \ 557 555 \ … … 564 562 \ 565 563 errorFlag = false; \ 566 out = psImageRoll(NULL,in,rows1/4,cols1/4);\564 psImage *out = psImageRoll(NULL,in,rows1/4,cols1/4); \ 567 565 for (psS32 row=0;row<rows1;row++) { \ 568 566 ps##DATATYPE *inRow = in->data.DATATYPE[(row+rows1/4)%rows1]; \ … … 579 577 psFree(in); \ 580 578 psFree(out); \ 581 ok(!errorFlag, "psImageRoll() produced the correct data values"); 579 ok(!errorFlag, "psImageRoll() produced the correct data values"); } 582 580 583 581 testRollType(U8); … … 636 634 system("mkdir temp"); 637 635 psS32 index = 0; 638 psBool fail = false;639 636 psF32 radianRot; 640 637 … … 711 708 diag("verified psF32 image failed to be read (%d deg. rotation)", rot); 712 709 errorFlag = true; 713 fail = true;714 710 } else { 715 711 if(fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) { … … 788 784 "(%d deg. rotation) BILINEAR",rot); 789 785 errorFlag = true; 790 fail = true;791 786 } else { 792 787 if (sBiTruth->numRows != sBiOut->numRows ||
Note:
See TracChangeset
for help on using the changeset viewer.
