Changeset 4191 for trunk/psLib/test/image/tst_psImageGeomManip.c
- Timestamp:
- Jun 9, 2005, 9:40:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImageGeomManip.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageGeomManip.c
r4128 r4191 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-06-0 7 02:29:44$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-09 19:40:51 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 559 559 } 560 560 561 char hduName[80];562 561 psRegion regionAll = psRegionSet(0,0,0,0); 563 562 for (psS32 rot=-180;rot<=180;rot+=45) { 564 563 psImage* oldOut = fOut; 565 564 psImage* oldBiOut = fBiOut; 566 snprintf(hduName, 80, "%+d", rot);567 565 if (rot == 90) { 568 566 radianRot = M_PI_2; … … 590 588 sBiOut = psImageRotate(sBiOut,sImg,radianRot,-1.0,PS_INTERPOLATE_BILINEAR); 591 589 592 if (! psFitsWriteImage(fOutFile, NULL, fOut, 1 , hduName) ) {590 if (! psFitsWriteImage(fOutFile, NULL, fOut, 1) ) { 593 591 psError(PS_ERR_UNKNOWN, true,"Can not write fOut."); 594 592 return 20; 595 593 } 596 if (! psFitsWriteImage(sOutFile, NULL, sOut, 1 , hduName) ) {594 if (! psFitsWriteImage(sOutFile, NULL, sOut, 1) ) { 597 595 psError(PS_ERR_UNKNOWN, true,"Can not write sOut."); 598 596 return 21; 599 597 } 600 if (! psFitsWriteImage(fBiOutFile, NULL, fBiOut, 1 , hduName) ) {598 if (! psFitsWriteImage(fBiOutFile, NULL, fBiOut, 1) ) { 601 599 psError(PS_ERR_UNKNOWN, true,"Can not write fBiOut.fits."); 602 600 return 40; 603 601 } 604 if (! psFitsWriteImage(sBiOutFile, NULL, sBiOut, 1 , hduName) ) {602 if (! psFitsWriteImage(sBiOutFile, NULL, sBiOut, 1) ) { 605 603 psError(PS_ERR_UNKNOWN, true,"Can not write sBiOut.fits."); 606 604 return 41;
Note:
See TracChangeset
for help on using the changeset viewer.
