Changeset 820 for trunk/psLib/src/image/psImage.h
- Timestamp:
- Jun 1, 2004, 10:00:08 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r816 r820 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-0 5-29 01:42:12$11 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-01 20:00:08 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 88 88 /** Resize a given image to the given size/type. 89 89 * 90 * return psImage* Resized psImage.90 * @return psImage* Resized psImage. 91 91 * 92 92 */ … … 127 127 /** Frees all children of a psImage. 128 128 * 129 * return int Number of children freed.129 * @return int Number of children freed. 130 130 * 131 131 */ … … 137 137 /** Makes a copy of a psImage 138 138 * 139 * return psImage* Copy of the input psImage. This may not be equal to the139 * @return psImage* Copy of the input psImage. This may not be equal to the 140 140 * output parameter 141 141 * … … 152 152 ); 153 153 154 /** Clip image values outside of tange to given values 155 * 156 * All pixels with values less than min are set to the value vmin. all pixels 157 * with values greater than max are set to the value vmax. This function is 158 * defined for psU8, psU16, psS8, psS16, psF32, psF64, psC32, and psC64. 159 * 160 * @return int The number of clipped pixels 161 */ 162 int psImageClip( 163 psImage* input, ///< the image to clip 164 psF32 min, ///< the minimum image value allowed 165 psF32 vmin, ///< the value pixels < min are set to 166 psF32 max, ///< the maximum image value allowed 167 psF32 vmax ///< the value pixels > max are set to 168 ); 169 170 /** Clip NaN image pixels to given value. 171 * 172 * Pixels with NaN, +Inf, or -Inf values are set to the specified value. This 173 * function is defined for psF32, psF64, psC32, and psC64. 174 * 175 * @return int The number of clipped pixels 176 */ 177 int psImageClipNaN( 178 psImage* input, ///< the image to clip 179 psF32 value ///< the value to set all NaN/Inf values to 180 ); 181 182 /** Overlay subregion of image with another image 183 * 184 * Replace the pixels in the image which correspond to the pixels in OVERLAY 185 * with values derived from the IMAGE and OVERLAY based on the given operator 186 * OP. Valid operators are "=" (set image value to OVERLAY value), "+" (add 187 * OVERLAY value to image value), "-" (subtract OVERLAY from image), "*" 188 * (multiply OVERLAY times image), "/" (divide image by OVERLAY). This 189 * function is defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64. 190 * 191 * @return int 0 if success, non-zero if failed. 192 */ 193 int psImageOverlaySection( 194 psImage* image, ///< target image 195 const psImage* overlay, ///< the overlay image 196 int col0, ///< the column to start overlay 197 int row0, ///< the row to start overlay 198 const char* op ///< the operation to perform for overlay 199 ); 154 200 155 201 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
