Changeset 4028
- Timestamp:
- May 25, 2005, 9:26:44 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
psLib/src/dataManip/psConstants.h (modified) (3 diffs)
-
psLib/src/dataManip/psStats.c (modified) (2 diffs)
-
psLib/src/math/psConstants.h (modified) (3 diffs)
-
psLib/src/math/psStats.c (modified) (2 diffs)
-
psModules/src/pmImageCombine.c (modified) (7 diffs)
-
psModules/src/pmObjects.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psConstants.h
r3990 r4028 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-05- 19 23:57:37$8 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-05-25 19:25:29 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 * throw a psError if the CONDITION is true. However, some throw the error 22 22 * if the CONDITION is false. This should be consistant. 23 * 24 * XXX: rename all these with form PS_ASSERT_CONDITION(). 23 25 * 24 26 */ … … 44 46 #define M_2_PI 0.6366197723675813430755350534900574 /* 2/pi */ 45 47 #endif 48 #define PS_PI 3.1415926535897932384626433832795029 /* pi */ 46 49 47 50 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) -
trunk/psLib/src/dataManip/psStats.c
r3990 r4028 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.12 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-05- 19 23:57:37$11 * @version $Revision: 1.128 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-05-25 19:25:29 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 705 705 Returns 706 706 NULL 707 708 XXX: Use static vectors. 707 709 *****************************************************************************/ 708 710 bool p_psVectorSampleQuartiles(const psVector* myVector, -
trunk/psLib/src/math/psConstants.h
r3990 r4028 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-05- 19 23:57:37$8 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-05-25 19:25:29 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 * throw a psError if the CONDITION is true. However, some throw the error 22 22 * if the CONDITION is false. This should be consistant. 23 * 24 * XXX: rename all these with form PS_ASSERT_CONDITION(). 23 25 * 24 26 */ … … 44 46 #define M_2_PI 0.6366197723675813430755350534900574 /* 2/pi */ 45 47 #endif 48 #define PS_PI 3.1415926535897932384626433832795029 /* pi */ 46 49 47 50 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) -
trunk/psLib/src/math/psStats.c
r3990 r4028 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.12 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-05- 19 23:57:37$11 * @version $Revision: 1.128 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-05-25 19:25:29 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 705 705 Returns 706 706 NULL 707 708 XXX: Use static vectors. 707 709 *****************************************************************************/ 708 710 bool p_psVectorSampleQuartiles(const psVector* myVector, -
trunk/psModules/src/pmImageCombine.c
r3878 r4028 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-05- 11 00:33:44 $7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-05-25 19:26:44 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 226 226 // 227 227 // Loop over all pixels in all images, set the appropriate data, mask, 228 // error vectors, call psVectorStats(), and set the result in the combine229 // image.228 // error vectors, call psVectorStats(), and set the result in the 229 // combine image. 230 230 // 231 231 for (psS32 row = 0 ; row < numRows ; row++) { … … 318 318 XXX: Use static variables. 319 319 XXX: Optimization: we don't need to transform the entire mask image. 320 XXX: The inToOut and outToIn transforms are confusing. Verify that what I think321 they mean syncs with PWP.320 XXX: The inToOut and outToIn transforms are confusing. Verify that what 321 I think they mean syncs with PWP. 322 322 *****************************************************************************/ 323 323 psArray *pmRejectPixels(const psArray *images, ///< Array of input images … … 356 356 psS32 numCols = ((psImage *) images->data[0])->numCols; 357 357 psS32 numRows = ((psImage *) images->data[0])->numRows; 358 psRegion *myRegion = psRegionAlloc(0, numCols-1, 0, numRows-1);358 psRegion myRegion = psRegionSet(0, numCols-1, 0, numRows-1); 359 359 psU32 maskVal = 1; 360 360 … … 368 368 psPixels *pixelList = (psPixels *) errors->data[im]; 369 369 psImage *currImage = (psImage *) images->data[im]; 370 myRegion ->x0 = 0;371 myRegion ->x1 = currImage->numCols - 1;372 myRegion ->y0 = 0;373 myRegion ->y1 = currImage->numRows - 1;370 myRegion.x0 = 0; 371 myRegion.x1 = currImage->numCols - 1; 372 myRegion.y0 = 0; 373 myRegion.y1 = currImage->numRows - 1; 374 374 psPlaneTransform *myInToOut = (psPlaneTransform *) inToOut->data[im]; 375 375 psPlaneTransform *myOutToIn = (psPlaneTransform *) outToIn->data[im]; … … 384 384 // Transform that mask image into detector coordinate space 385 385 // 386 psImage *transformedImage = psImageTransform(NULL, maskImage, NULL, 0, myOutToIn, NULL, 0); 386 // XXX: conform to new psImageTransform() 387 // psImage *transformedImage = psImageTransform(NULL, maskImage, NULL, 0, myOutToIn, NULL, 0); 388 psImage *transformedImage = NULL; 387 389 388 390 // … … 457 459 } 458 460 459 psFree(myRegion);461 // psFree(myRegion); 460 462 psFree(inCoords); 461 463 psFree(outCoords); -
trunk/psModules/src/pmObjects.c
r3881 r4028 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-05- 11 20:56:31$7 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-05-25 19:26:44 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 664 664 // Grab a subimage of the original image of size (2 * outerRadius). 665 665 // 666 psImage *subImage = psImageSubset((psImage *) image, 667 SubImageStartCol, 668 SubImageStartRow, 669 SubImageEndCol, 670 SubImageEndRow); 666 // XXX: Must fix for new psImageSubset 667 // psImage *subImage = psImageSubset((psImage *) image, 668 // SubImageStartCol, 669 // SubImageStartRow, 670 // SubImageEndCol, 671 // SubImageEndRow); 672 psImage *subImage = NULL; 671 673 // printf("pmSourceLocalSky: subimage width/length is (%d, %d)\n", subImage->numCols, subImage->numRows); 672 674 psImage *subImageMask = psImageAlloc(subImage->numCols, … … 1244 1246 psFree(source->pixels); 1245 1247 } 1246 source->pixels = psImageSubset((psImage *) image, 1247 SubImageStartCol, 1248 SubImageStartRow, 1249 SubImageEndCol, 1250 SubImageEndRow); 1248 // XXX: Must fix this. psImageSubset() has different parameters in latest CVS. 1249 // source->pixels = psImageSubset((psImage *) image, 1250 // SubImageStartCol, 1251 // SubImageStartRow, 1252 // SubImageEndCol, 1253 // SubImageEndRow); 1251 1254 1252 1255 // XXX: Must recycle image.
Note:
See TracChangeset
for help on using the changeset viewer.
