Changeset 3476 for trunk/psLib/src/image/psImageManip.h
- Timestamp:
- Mar 22, 2005, 11:52:49 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.h
r3264 r3476 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 2-17 19:26:24$13 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-03-22 21:52:49 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 20 21 21 #include "psImage.h" 22 #include "psCoord.h" 22 23 23 24 /// @addtogroup Image … … 180 181 ); 181 182 183 /** Transform the input image according the supplied transformation. 184 * 185 * Transform the input image according the supplied transformation. In the 186 * event that the output is NULL, the smallest possible image capable of 187 * containing the entire transformed input image is to be returned; otherwise 188 * only the image size specified in the output image is to be used. If the 189 * inputMask is not NULL, those pixels in the inputMask matching inputMaskVal 190 * are to be ignored in the transformation. The inputMask must be of type 191 * 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. 201 * 202 * @return psImage* The transformed image. 203 */ 204 psImage* psImageTransform( 205 psImage *output, ///< psImage to recycle, or NULL 206 const psImage *input, ///< psImage to apply transform to 207 const psImage *inputMask, ///< if not NULL, mask of input psImage 208 int inputMaskVal, ///< masking value for inputMask 209 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 212 ); 213 182 214 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
