Changeset 3442
- Timestamp:
- Mar 17, 2005, 9:02:01 AM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
image/psImage.c (modified) (2 diffs)
-
image/psImage.h (modified) (3 diffs)
-
mathtypes/psImage.c (modified) (2 diffs)
-
mathtypes/psImage.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.c
r3264 r3442 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 59$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 2-17 19:26:24$11 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-03-17 19:02:01 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 413 413 } 414 414 415 /*****************************************************************************416 XXX: update function description.417 418 p_psImagePixelInterpolation(image, x, y): this routine takes as input an419 image and coordinates (x, y) and produces as output the corresponding pixel420 value at the those coordinates. For fractional corrdinates (x, y), 2-D421 linear interpolation is performed on the image.422 *****************************************************************************/423 415 psC64 psImagePixelInterpolate(const psImage* input, 424 416 float x, -
trunk/psLib/src/image/psImage.h
r3264 r3442 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 2-17 19:26:24$13 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-03-17 19:02:01 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 31 31 */ 32 32 typedef enum { 33 PS_INTERPOLATE_FLAT = 1,///< 'flat' interpolation (nearest pixel)33 PS_INTERPOLATE_FLAT, ///< 'flat' interpolation (nearest pixel) 34 34 PS_INTERPOLATE_BILINEAR, ///< bi-linear interpolation 35 PS_INTERPOLATE_BICUBIC, ///< bi-cubic interpolation 36 PS_INTERPOLATE_SINC, ///< sinc interpolation 37 PS_INTERPOLATE_NUM_MODES ///< end-marker of list of modes; not a valid interpolation mode 35 PS_INTERPOLATE_LANCZOS2, ///< Sinc interpolation with 4x4 pixel kernel 36 PS_INTERPOLATE_LANCZOS3, ///< Sinc interpolation with 6x6 pixel kernel 37 PS_INTERPOLATE_LANCZOS4, ///< Sinc interpolation with 8x8 pixel kernel 38 PS_INTERPOLATE_BILINEAR_VARIANCE, ///< Variance version of PS_INTERPOLATE_BILINEAR 39 PS_INTERPOLATE_LANCZOS2_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS2 40 PS_INTERPOLATE_LANCZOS3_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS3 41 PS_INTERPOLATE_LANCZOS4_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS4 42 PS_INTERPOLATE_NUM_MODES ///< enum end-marker; does not coorespond to a interpolation mode 38 43 } psImageInterpolateMode; 39 44 … … 47 52 { 48 53 const psType type; ///< Image data type and dimension. 49 const psU32 numCols; ///< Number of columns in image50 const psU32 numRows; ///< Number of rows in image.51 const psS32 col0; ///< Column position relative to parent.52 const psS32 row0; ///< Row position relative to parent.54 const psU32 numCols; ///< Number of columns in image 55 const psU32 numRows; ///< Number of rows in image. 56 const psS32 col0; ///< Column position relative to parent. 57 const psS32 row0; ///< Row position relative to parent. 53 58 54 59 union { -
trunk/psLib/src/mathtypes/psImage.c
r3264 r3442 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 59$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 2-17 19:26:24$11 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-03-17 19:02:01 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 413 413 } 414 414 415 /*****************************************************************************416 XXX: update function description.417 418 p_psImagePixelInterpolation(image, x, y): this routine takes as input an419 image and coordinates (x, y) and produces as output the corresponding pixel420 value at the those coordinates. For fractional corrdinates (x, y), 2-D421 linear interpolation is performed on the image.422 *****************************************************************************/423 415 psC64 psImagePixelInterpolate(const psImage* input, 424 416 float x, -
trunk/psLib/src/mathtypes/psImage.h
r3264 r3442 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 2-17 19:26:24$13 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-03-17 19:02:01 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 31 31 */ 32 32 typedef enum { 33 PS_INTERPOLATE_FLAT = 1,///< 'flat' interpolation (nearest pixel)33 PS_INTERPOLATE_FLAT, ///< 'flat' interpolation (nearest pixel) 34 34 PS_INTERPOLATE_BILINEAR, ///< bi-linear interpolation 35 PS_INTERPOLATE_BICUBIC, ///< bi-cubic interpolation 36 PS_INTERPOLATE_SINC, ///< sinc interpolation 37 PS_INTERPOLATE_NUM_MODES ///< end-marker of list of modes; not a valid interpolation mode 35 PS_INTERPOLATE_LANCZOS2, ///< Sinc interpolation with 4x4 pixel kernel 36 PS_INTERPOLATE_LANCZOS3, ///< Sinc interpolation with 6x6 pixel kernel 37 PS_INTERPOLATE_LANCZOS4, ///< Sinc interpolation with 8x8 pixel kernel 38 PS_INTERPOLATE_BILINEAR_VARIANCE, ///< Variance version of PS_INTERPOLATE_BILINEAR 39 PS_INTERPOLATE_LANCZOS2_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS2 40 PS_INTERPOLATE_LANCZOS3_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS3 41 PS_INTERPOLATE_LANCZOS4_VARIANCE, ///< Variance version of PS_INTERPOLATE_LANCZOS4 42 PS_INTERPOLATE_NUM_MODES ///< enum end-marker; does not coorespond to a interpolation mode 38 43 } psImageInterpolateMode; 39 44 … … 47 52 { 48 53 const psType type; ///< Image data type and dimension. 49 const psU32 numCols; ///< Number of columns in image50 const psU32 numRows; ///< Number of rows in image.51 const psS32 col0; ///< Column position relative to parent.52 const psS32 row0; ///< Row position relative to parent.54 const psU32 numCols; ///< Number of columns in image 55 const psU32 numRows; ///< Number of rows in image. 56 const psS32 col0; ///< Column position relative to parent. 57 const psS32 row0; ///< Row position relative to parent. 53 58 54 59 union {
Note:
See TracChangeset
for help on using the changeset viewer.
