Changeset 3880 for trunk/psLib/src/image/psImageManip.h
- Timestamp:
- May 10, 2005, 4:29:39 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.h
r3737 r3880 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 4-21 21:18:23$12 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-05-11 02:29:39 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psCoord.h" 22 22 #include "psStats.h" 23 #include "psPixels.h" 23 24 24 25 /// @addtogroup Image … … 183 184 /** Transform the input image according the supplied transformation. 184 185 * 185 * Transform the input image according the supplied transformation. In the186 * event that the output is NULL, the smallest possible image capable of187 * containing the entire transformed input image is to be returned; otherwise188 * only the image size specified in the output image is to be used. If the189 * inputMask is no tNULL, those pixels in the inputMask matching inputMaskVal186 * Transform the input image according the supplied transformation. The size 187 * of the transformed image is deï¬ned by the supplied output image, if 188 * non-NULL, or the region otherwise (size region.x1 - region.x0 by region.y1 189 * region.y0, with out->x0 = region.x0 and out->y0 = region.y0). If the 190 * inputMask is non-NULL, those pixels in the inputMask matching inputMaskVal 190 191 * are to be ignored in the transformation. The inputMask must be of type 191 192 * psU8, and of the same size as the input, otherwise the function shall 192 * generate an error and return NULL. The transformation outToIn specifies 193 * the coordinates in the input image of a pixel in the output image - note 194 * that this is the reverse of what might be naively expected, but it is what 195 * is required in order to use psImagePixelInterpolate. If combineMask is not 196 * NULL, then those pixels that match combineMaskVal are not transformed. 197 * combineMask must be of type psU8 and of the same size as the output, 198 * otherwise the function shall generate an error and return NULL. This 199 * function must be capable of handling the following types for the input 200 * (with corresponding types for the output): psF32, psF64. 193 * generate an error and return NULL. The transformation outToIn speciï¬es the 194 * coordinates in the input image of a pixel in the output image â note that 195 * this is the reverse of what might be naively expected, but it is what is 196 * required in order to use psImagePixelInterpolate. If the pixels array is 197 * non-NULL, it shall consist of psPixelCoords, and only those pixels in the 198 * output image shall be transformed; otherwise, the entire image is 199 * generated. The interpolation is performed using the speciï¬ed interpolation 200 * mode. Where a pixel in the output image does not correspond to a pixel in 201 * the input image (or all appropriate pixels in the input image are 202 * masked), the value shall be set to exposed, and the pixel added to the 203 * appropriate list of pixels (psPixels) in the array of blankPixels for 204 * return to the user. This function must be capable of handling the following 205 * types for the input (with corresponding types for the output): psF32, psF64. 206 201 207 * 202 208 * @return psImage* The transformed image. … … 204 210 psImage* psImageTransform( 205 211 psImage *output, ///< psImage to recycle, or NULL 212 psArray** blankPixels, ///< 206 213 const psImage *input, ///< psImage to apply transform to 207 214 const psImage *inputMask, ///< if not NULL, mask of input psImage 208 215 int inputMaskVal, ///< masking value for inputMask 209 216 const psPlaneTransform *outToIn, ///< the transform to apply 210 const psImage *combineMask, ///< if not NULL, mask of pixels not to be transformed 211 int combineMaskVal ///< masking value for combineMask 217 const psRegion region, ///< 218 const psPixels* pixels, ///< 219 psImageInterpolateMode mode, ///< 220 int exposedValue ///< 212 221 ); 213 222
Note:
See TracChangeset
for help on using the changeset viewer.
