Changeset 12745 for trunk/psLib/src/imageops/psImageGeomManip.h
- Timestamp:
- Apr 4, 2007, 2:17:29 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageGeomManip.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageGeomManip.h
r12741 r12745 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-0 4 22:42:02$8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-05 00:17:29 $ 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 11 11 */ … … 98 98 ); 99 99 100 /** Shift image by an arbitrary number of pixels (dx,dy) in either direction.101 *102 * If the shift values are fractional, the output pixel values should103 * interpolate between the input pixel values. The output image has the same104 * dimensions as the input image. Pixels which fall off the edge of the105 * output image are lost. Newly exposed pixels are set to the value given by106 * exposed. This function must be defined for the following types: psU8,107 * psU16, psS8, psS16, psF32, psF64.108 *109 * This implementation uses a NxN kernel generated based on the interpolation method110 * the image is first shifted by a fractional amount with the kernel, then111 * shifted in place by an integer amount.112 *113 * XXX the integer shift portion is not implemented114 * XXX the exposed pixels are not properly replaced115 * XXX the algorithm can properly handle a mask, but the API does not include116 * it (and it is not implemented)117 *118 * @return psImage* the shifted image result.119 */120 psImage* psImageShiftKernel(121 psImage* out, ///< an psImage to recycle. If NULL, a new image is created122 const psImage* input, ///< input image123 float dx, ///< the shift in x direction.124 float dy, ///< the shift in y direction.125 psImageInterpolateMode mode ///< the interpolation mode to use126 );127 128 // XXX should this be global private or local static?129 psImage *p_psImageShiftKernel_F32(130 psImage *out,131 const psImage *input,132 const psImage *kernel);133 134 100 /** Roll image by an integer number of pixels in either direction. 135 101 *
Note:
See TracChangeset
for help on using the changeset viewer.
