Changeset 6227
- Timestamp:
- Jan 27, 2006, 3:12:17 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 12 edited
-
src/imageops/psImageGeomManip.c (modified) (3 diffs)
-
src/imageops/psImageGeomManip.h (modified) (4 diffs)
-
src/imageops/psImagePixelManip.c (modified) (2 diffs)
-
src/imageops/psImagePixelManip.h (modified) (2 diffs)
-
src/mathtypes/psImage.c (modified) (4 diffs)
-
src/mathtypes/psImage.h (modified) (5 diffs)
-
src/mathtypes/psScalar.c (modified) (2 diffs)
-
src/mathtypes/psScalar.h (modified) (2 diffs)
-
src/mathtypes/psVector.c (modified) (3 diffs)
-
src/mathtypes/psVector.h (modified) (3 diffs)
-
src/sys/psType.h (modified) (2 diffs)
-
test/astro/tst_psTime_04.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.c
r5511 r6227 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $13 * @date $Date: 200 5-11-14 22:18:33$12 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-28 01:12:11 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 305 305 const psImage* input, 306 306 float angle, 307 complex exposed,307 double complex exposed, 308 308 psImageInterpolateMode mode) 309 309 { … … 597 597 float dx, 598 598 float dy, 599 complex exposed,599 double complex exposed, 600 600 psImageInterpolateMode mode) 601 601 { -
trunk/psLib/src/imageops/psImageGeomManip.h
r4934 r6227 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $11 * @date $Date: 200 5-08-31 21:58:22$10 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-01-28 01:12:11 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 const psImage* input, ///< input image 78 78 float angle, ///< the rotation angle in radians. 79 complex exposed, ///< the output image pixel values for non-imagery areas79 double complex exposed, ///< the output image pixel values for non-imagery areas 80 80 psImageInterpolateMode mode ///< the interpolation mode used 81 81 ); … … 97 97 float dx, ///< the shift in x direction. 98 98 float dy, ///< the shift in y direction. 99 complex exposed, ///< the output image pixel values for non-imagery areas99 double complex exposed, ///< the output image pixel values for non-imagery areas 100 100 psImageInterpolateMode mode ///< the interpolation mode to use 101 101 ); … … 151 151 psRegion region, ///< the size of the transformed image 152 152 const psPixels* pixels, /**< if not NULL, consists of psPixelCoords and specifies which pixels in 153 * output image shall be transformed; otherwise, entire image generated*/153 * output image shall be transformed; otherwise, entire image generated*/ 154 154 psImageInterpolateMode mode, ///< the interpolation scheme to be used 155 155 double exposedValue ///< Exposed value to which non-corresponding pixels are set -
trunk/psLib/src/imageops/psImagePixelManip.c
r5227 r6227 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 200 5-10-06 02:41:07$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-28 01:12:11 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 311 311 312 312 int psImageClipComplexRegion(psImage* input, 313 complex min,314 complex vmin,315 complex max,316 complex vmax)313 double complex min, 314 double complex vmin, 315 double complex max, 316 double complex vmax) 317 317 { 318 318 psS32 numClipped = 0; -
trunk/psLib/src/imageops/psImagePixelManip.h
r5227 r6227 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $11 * @date $Date: 200 5-10-06 02:41:07$10 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-01-28 01:12:11 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 int psImageClipComplexRegion( 52 52 psImage* input, ///< the image to clip 53 complex min,///< the minimum image value allowed54 complex vmin,///< the value pixels < min are set to55 complex max,///< the maximum image value allowed56 complex vmax///< the value pixels > max are set to53 double complex min, ///< the minimum image value allowed 54 double complex vmin, ///< the value pixels < min are set to 55 double complex max, ///< the maximum image value allowed 56 double complex vmax ///< the value pixels > max are set to 57 57 ); 58 58 -
trunk/psLib/src/mathtypes/psImage.c
r5841 r6227 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.9 3$ $Name: not supported by cvs2svn $12 * @date $Date: 200 5-12-24 00:33:18$11 * @version $Revision: 1.94 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-01-28 01:12:14 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 289 289 int x, 290 290 int y, 291 complex value)291 double complex value) 292 292 { 293 293 if (image == NULL) { … … 359 359 } 360 360 361 complex psImageGet(const psImage *image,362 int x,363 int y)361 double complex psImageGet(const psImage *image, 362 int x, 363 int y) 364 364 { 365 365 if (image == NULL) { … … 668 668 } 669 669 670 complex psImagePixelInterpolate(const psImage* input,671 float x,672 float y,673 const psImage* mask,674 psMaskType maskVal,675 complex unexposedValue,676 psImageInterpolateMode mode)670 double complex psImagePixelInterpolate(const psImage* input, 671 float x, 672 float y, 673 const psImage* mask, 674 psMaskType maskVal, 675 double complex unexposedValue, 676 psImageInterpolateMode mode) 677 677 { 678 678 -
trunk/psLib/src/mathtypes/psImage.h
r5530 r6227 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.7 3$ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-11-16 23:06:21$13 * @version $Revision: 1.74 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-01-28 01:12:14 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 206 206 int x, ///< x-position 207 207 int y, ///< y-position 208 complex value///< specified value to set208 double complex value ///< specified value to set 209 209 ); 210 210 … … 213 213 * A negative value for the x or y positions means index from the end. 214 214 * 215 * @return complex: The value at the specified x,y position.216 */ 217 complex psImageGet(215 * @return complex: The value at the specified x,y position. 216 */ 217 double complex psImageGet( 218 218 const psImage *image, ///< the image from which to get 219 219 int x, ///< x-position … … 272 272 /** Interpolate image pixel value given floating point coordinates. 273 273 * 274 * @return psF32Pixel value interpolated from image or unexposedValue if274 * @return complex Pixel value interpolated from image or unexposedValue if 275 275 * given x,y doesn't coorespond to a valid image location 276 276 */ 277 complex psImagePixelInterpolate(277 double complex psImagePixelInterpolate( 278 278 const psImage* input, ///< input image for interpolation 279 279 float x, ///< column location to derive value of … … 281 281 const psImage* mask, ///< if not NULL, the mask of the input image 282 282 psMaskType maskVal, ///< the mask value 283 complex unexposedValue, ///< return value if x,y location is not in image.283 double complex unexposedValue, ///< return value if x,y location is not in image. 284 284 psImageInterpolateMode mode ///< interpolation mode 285 285 ); -
trunk/psLib/src/mathtypes/psScalar.c
r4935 r6227 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $11 * @date $Date: 200 5-08-31 22:00:10$10 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-01-28 01:12:14 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 27 27 } 28 28 29 psScalar* psScalarAlloc( complex value, psElemType type)29 psScalar* psScalarAlloc(double complex value, psElemType type) 30 30 { 31 31 psScalar* scalar = NULL; -
trunk/psLib/src/mathtypes/psScalar.h
r5057 r6227 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-09-15 21:22:22$13 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-01-28 01:12:14 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 66 66 */ 67 67 psScalar* psScalarAlloc( 68 complex value,///< Data to be put into psScalar.68 double complex value, ///< Data to be put into psScalar. 69 69 psElemType type ///< Type of data to be held by psScalar. 70 70 ); -
trunk/psLib/src/mathtypes/psVector.c
r5841 r6227 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $12 * @date $Date: 200 5-12-24 00:33:18$11 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-01-28 01:12:14 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 818 818 bool psVectorSet(const psVector *input, 819 819 long position, 820 complex value)820 double complex value) 821 821 { 822 822 if (input == NULL) { … … 890 890 } 891 891 892 complex psVectorGet(const psVector *input,893 long position)892 double complex psVectorGet(const psVector *input, 893 long position) 894 894 { 895 895 if (input == NULL) { -
trunk/psLib/src/mathtypes/psVector.h
r5530 r6227 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 0$ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-11-16 23:06:21$13 * @version $Revision: 1.51 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-01-28 01:12:14 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 235 235 const psVector *input, ///< Input vector to set 236 236 long position, ///< vector position 237 complex value///< value to set237 double complex value ///< value to set 238 238 ); 239 239 … … 244 244 * @return complex: Value of the input vector at the specified position. 245 245 */ 246 complex psVectorGet(246 double complex psVectorGet( 247 247 const psVector *input, ///< Input vector from which to get value 248 248 long position ///< vector position -
trunk/psLib/src/sys/psType.h
r5454 r6227 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $13 * @date $Date: 200 5-10-29 00:05:52$12 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-28 01:12:15 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 68 68 #else // SWIG 69 typedef float _Complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers70 typedef double _Complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers69 typedef float complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers 70 typedef double complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers 71 71 #endif // !SWIG 72 72 -
trunk/psLib/test/astro/tst_psTime_04.c
r6212 r6227 18 18 * @author David Robbins, MHPCC 19 19 * 20 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $21 * @date $Date: 2006-01-2 6 23:32:49$20 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2006-01-28 01:12:17 $ 22 22 * 23 23 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 161 161 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 162 162 "psTime_TideUT1Corr failed to return correct values.\n"); 163 printf("\nsec = %ld, nsec = %u\n", (long )(empty->sec), empty->nsec);163 printf("\nsec = %ld, nsec = %u\n", (long int)empty->sec, empty->nsec); 164 164 return 2; 165 165 }
Note:
See TracChangeset
for help on using the changeset viewer.
