Changeset 1216 for trunk/psLib/src/image/psImageManip.h
- Timestamp:
- Jul 14, 2004, 1:22:49 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.h
r1205 r1216 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-07- 09 21:48:07$12 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-07-14 23:22:49 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 16 16 */ 17 # ifndef PS_IMAGE_MANIP_H18 # define PS_IMAGE_MANIP_H17 #ifndef PS_IMAGE_MANIP_H 18 #define PS_IMAGE_MANIP_H 19 19 20 20 #include "psImage.h" … … 23 23 /// @{ 24 24 25 /** Clip image values outside of tange to given values25 /** Clip image values outside of range to given values 26 26 * 27 27 * All pixels with values less than min are set to the value vmin. all pixels … … 33 33 int psImageClip( 34 34 psImage* input, ///< the image to clip 35 psF32 min, ///< the minimum image value allowed 36 psF32 vmin, ///< the value pixels < min are set to 37 psF32 max, ///< the maximum image value allowed 38 psF32 vmax ///< the value pixels > max are set to 35 psF64 min, ///< the minimum image value allowed 36 psF64 vmin, ///< the value pixels < min are set to 37 psF64 max, ///< the maximum image value allowed 38 psF64 vmax ///< the value pixels > max are set to 39 ); 40 41 /** Clip image values outside of a specified complex region 42 * 43 * All pixels outside of the rectangular region in complex space formed by 44 * the min and max input parameters are set to the value vmax (if either 45 * the real or imaginary portion exceeds the respective max values), or vmin. 46 * This function is defined for psC32, and psC64 imagery only. 47 * 48 * @return int The number of clipped pixels 49 */ 50 int psImageClipComplexRegion( 51 psImage* input, ///< the image to clip 52 psC64 min, ///< the minimum image value allowed 53 psC64 vmin, ///< the value pixels < min are set to 54 psC64 max, ///< the maximum image value allowed 55 psC64 vmax ///< the value pixels > max are set to 39 56 ); 40 57 … … 48 65 int psImageClipNaN( 49 66 psImage* input, ///< the image to clip 50 psF 32value ///< the value to set all NaN/Inf values to67 psF64 value ///< the value to set all NaN/Inf values to 51 68 ); 52 69 … … 70 87 ); 71 88 89 /** Rebin image to new scale. 90 * 91 * A new image is constructed in which the dimensions are reduced by a factor of 92 * 1/scale. The scale, always a positive number, is equal in each dimension and 93 * specified the number of pixels used to define a new pixel in the output image. 94 * The output image is generated from all input image pixels. This function is 95 * defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64. 96 * 97 * @return psImage new image formed by rebinning input image. 98 */ 99 psImage* psImageRebin( 100 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 101 const psImage* in, ///< input image 102 unsigned int scale, ///< the scale to rebin for each dimension 103 const psStats* stats ///< the statistic to perform when rebinning. Only one method should be set. 104 ); 72 105 73 106 #endif 107
Note:
See TracChangeset
for help on using the changeset viewer.
