Changeset 4316 for trunk/psLib/src/imageops
- Timestamp:
- Jun 17, 2005, 5:13:02 PM (21 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 4 edited
-
psImageConvolve.c (modified) (3 diffs)
-
psImageConvolve.h (modified) (3 diffs)
-
psImageGeomManip.c (modified) (6 diffs)
-
psImageGeomManip.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r4315 r4316 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-06-18 0 2:30:49$7 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-06-18 03:13:02 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 27 27 static void freeKernel(psKernel* ptr); 28 28 29 psKernel* psKernelAlloc( psS32 xMin, psS32 xMax, psS32 yMin, psS32yMax)29 psKernel* psKernelAlloc(int xMin, int xMax, int yMin, int yMax) 30 30 { 31 31 psKernel* result; … … 90 90 const psVector* xShifts, 91 91 const psVector* yShifts, 92 psBool relative)92 bool relative) 93 93 { 94 94 psS32 lastX; -
trunk/psLib/src/imageops/psImageConvolve.h
r4315 r4316 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-18 0 2:30:49$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-18 03:13:02 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 71 71 */ 72 72 psKernel* psKernelAlloc( 73 psS32xMin, ///< Most negative x index74 psS32xMax, ///< Most positive x index75 psS32yMin, ///< Most negative y index76 psS32yMax ///< Most positive y index73 int xMin, ///< Most negative x index 74 int xMax, ///< Most positive x index 75 int yMin, ///< Most negative y index 76 int yMax ///< Most positive y index 77 77 ); 78 78 … … 97 97 const psVector* xShifts, ///< list of x-axis shifts 98 98 const psVector* yShifts, ///< list of y-axis shifts 99 psBool relative99 bool relative 100 100 /**< specifies the starting point for the shifts; true=relative to previous shift 101 101 * false = relative to some other starting point. */ -
trunk/psLib/src/imageops/psImageGeomManip.c
r4308 r4316 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-1 7 23:44:21$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-18 03:13:02 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 174 174 psImage* psImageResample(psImage* out, 175 175 const psImage* in, 176 psS32scale,176 int scale, 177 177 psImageInterpolateMode mode) 178 178 { … … 251 251 252 252 psImage* psImageRoll(psImage* out, 253 const psImage* in ,254 psS32dx,255 psS32dy)253 const psImage* input, 254 int dx, 255 int dy) 256 256 { 257 257 psS32 outRows; … … 259 259 psS32 elementSize; 260 260 261 if (in == NULL) {261 if (input == NULL) { 262 262 psError(PS_ERR_BAD_PARAMETER_NULL, true, 263 263 PS_ERRORTEXT_psImage_IMAGE_NULL); … … 267 267 // create an output image of the same size 268 268 // and type 269 outRows = in ->numRows;270 outCols = in ->numCols;271 elementSize = PSELEMTYPE_SIZEOF(in ->type.type);272 out = psImageRecycle(out, outCols, outRows, in ->type.type);269 outRows = input->numRows; 270 outCols = input->numCols; 271 elementSize = PSELEMTYPE_SIZEOF(input->type.type); 272 out = psImageRecycle(out, outCols, outRows, input->type.type); 273 273 274 274 // make dx and dy between 0 and outCols or … … 292 292 inRowNumber -= outRows; 293 293 } 294 psU8* inRow = in ->data.U8[inRowNumber]; // use byte arithmetic for all types294 psU8* inRow = input->data.U8[inRowNumber]; // use byte arithmetic for all types 295 295 psU8* outRow = out->data.U8[row]; 296 296 -
trunk/psLib/src/imageops/psImageGeomManip.h
r4287 r4316 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06-1 6 22:07:41$10 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-18 03:13:02 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 57 57 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 58 58 const psImage* in, ///< input image 59 psS32scale, ///< resample scaling factor59 int scale, ///< resample scaling factor 60 60 psImageInterpolateMode mode ///< the interpolation mode used in resampling 61 61 ); … … 111 111 psImage* psImageRoll( 112 112 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 113 const psImage* in ,///< input image114 psS32 dx,///< number of pixels to roll in the x-dimension115 psS32 dy///< number of pixels to roll in the y-dimension113 const psImage* input, ///< input image 114 int dx, ///< number of pixels to roll in the x-dimension 115 int dy ///< number of pixels to roll in the y-dimension 116 116 ); 117 117 … … 151 151 const 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 int exposedValue ///< Exposed value to which non-corresponding pixels are set
Note:
See TracChangeset
for help on using the changeset viewer.
