Changeset 1634
- Timestamp:
- Aug 27, 2004, 9:05:40 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
image/psImage.c (modified) (5 diffs)
-
image/psImage.h (modified) (2 diffs)
-
mathtypes/psImage.c (modified) (5 diffs)
-
mathtypes/psImage.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.c
r1606 r1634 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-2 3 22:36:03$12 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-27 19:05:40 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 40 40 /*****************************************************************************/ 41 41 42 psImage* psImageAlloc(unsigned int numCols, unsigned int numRows, const psElemType type) 42 psImage* psImageAlloc(unsigned int numCols, 43 unsigned int numRows, 44 const psElemType type) 43 45 { 44 46 int area = 0; … … 122 124 } 123 125 124 psImage* psImageRecycle(psImage* old, unsigned int numCols, unsigned int numRows, const psElemType type) 126 psImage* psImageRecycle(psImage* old, 127 unsigned int numCols, 128 unsigned int numRows, 129 const psElemType type) 125 130 { 126 131 int elementSize = PSELEMTYPE_SIZEOF(type); // element … … 215 220 linear interpolation is performed on the image. 216 221 *****************************************************************************/ 217 psF32 psImagePixelInterpolate(const psImage* input, 218 float x, float y, psF32 unexposedValue, psImageInterpolateMode mode) 222 psC64 psImagePixelInterpolate(const psImage* input, 223 float x, 224 float y, 225 psC64 unexposedValue, 226 psImageInterpolateMode mode) 219 227 { 220 228 … … 311 319 PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(C32) 312 320 PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(C64) 321 313 322 #define PSIMAGE_PIXEL_INTERPOLATE_BILINEAR(TYPE) \ 314 323 inline psF64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage* input, \ -
trunk/psLib/src/image/psImage.h
r1606 r1634 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-2 3 22:36:03$14 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-27 19:05:40 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 113 113 * given x,y doesn't coorespond to a valid image location 114 114 */ 115 ps F32psImagePixelInterpolate(115 psC64 psImagePixelInterpolate( 116 116 const psImage* input, ///< input image for interpolation 117 117 float x, ///< column location to derive value of 118 118 float y, ///< row location ot derive value of 119 ps F32unexposedValue, ///< return value if x,y location is not in image.119 psC64 unexposedValue, ///< return value if x,y location is not in image. 120 120 psImageInterpolateMode mode ///< interpolation mode 121 121 ); -
trunk/psLib/src/mathtypes/psImage.c
r1606 r1634 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-2 3 22:36:03$12 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-27 19:05:40 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 40 40 /*****************************************************************************/ 41 41 42 psImage* psImageAlloc(unsigned int numCols, unsigned int numRows, const psElemType type) 42 psImage* psImageAlloc(unsigned int numCols, 43 unsigned int numRows, 44 const psElemType type) 43 45 { 44 46 int area = 0; … … 122 124 } 123 125 124 psImage* psImageRecycle(psImage* old, unsigned int numCols, unsigned int numRows, const psElemType type) 126 psImage* psImageRecycle(psImage* old, 127 unsigned int numCols, 128 unsigned int numRows, 129 const psElemType type) 125 130 { 126 131 int elementSize = PSELEMTYPE_SIZEOF(type); // element … … 215 220 linear interpolation is performed on the image. 216 221 *****************************************************************************/ 217 psF32 psImagePixelInterpolate(const psImage* input, 218 float x, float y, psF32 unexposedValue, psImageInterpolateMode mode) 222 psC64 psImagePixelInterpolate(const psImage* input, 223 float x, 224 float y, 225 psC64 unexposedValue, 226 psImageInterpolateMode mode) 219 227 { 220 228 … … 311 319 PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(C32) 312 320 PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(C64) 321 313 322 #define PSIMAGE_PIXEL_INTERPOLATE_BILINEAR(TYPE) \ 314 323 inline psF64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage* input, \ -
trunk/psLib/src/mathtypes/psImage.h
r1606 r1634 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-2 3 22:36:03$14 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-27 19:05:40 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 113 113 * given x,y doesn't coorespond to a valid image location 114 114 */ 115 ps F32psImagePixelInterpolate(115 psC64 psImagePixelInterpolate( 116 116 const psImage* input, ///< input image for interpolation 117 117 float x, ///< column location to derive value of 118 118 float y, ///< row location ot derive value of 119 ps F32unexposedValue, ///< return value if x,y location is not in image.119 psC64 unexposedValue, ///< return value if x,y location is not in image. 120 120 psImageInterpolateMode mode ///< interpolation mode 121 121 );
Note:
See TracChangeset
for help on using the changeset viewer.
