Changeset 1407 for trunk/psLib/src/image/psImageManip.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.h
r1263 r1407 1 1 2 /** @file psImageManip.h 2 3 * … … 10 11 * @author Ross Harman, MHPCC 11 12 * 12 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 7-22 20:42:22$13 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-07 00:06:06 $ 14 15 * 15 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 16 17 */ 17 18 #ifndef PS_IMAGE_MANIP_H 18 # define PS_IMAGE_MANIP_H19 # define PS_IMAGE_MANIP_H 19 20 20 # include "psImage.h"21 # include "psImage.h" 21 22 22 23 /// @addtogroup Image … … 31 32 * @return int The number of clipped pixels 32 33 */ 33 int psImageClip( 34 psImage* input, ///< the image to clip 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 ); 34 int psImageClip(psImage * input, // /< the image to clip 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 40 41 41 /** Clip image values outside of a specified complex region … … 48 48 * @return int The number of clipped pixels 49 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 56 ); 50 int psImageClipComplexRegion(psImage * input, // /< the image to clip 51 psC64 min, // /< the minimum image value allowed 52 psC64 vmin, // /< the value pixels < min are set to 53 psC64 max, // /< the maximum image value allowed 54 psC64 vmax // /< the value pixels > max are set to 55 ); 57 56 58 57 /** Clip NaN image pixels to given value. … … 63 62 * @return int The number of clipped pixels 64 63 */ 65 int psImageClipNaN( 66 psImage* input, ///< the image to clip 67 psF64 value ///< the value to set all NaN/Inf values to 68 ); 64 int psImageClipNaN(psImage * input, // /< the image to clip 65 psF64 value // /< the value to set all NaN/Inf values to 66 ); 69 67 70 68 /** Overlay subregion of image with another image … … 79 77 * @return int 0 if success, non-zero if failed. 80 78 */ 81 int psImageOverlaySection( 82 psImage* image, ///< target image 83 const psImage* overlay, ///< the overlay image 84 int col0, ///< the column to start overlay 85 int row0, ///< the row to start overlay 86 const char* op ///< the operation to perform for overlay 87 ); 79 int psImageOverlaySection(psImage * image, // /< target image 80 const psImage * overlay, // /< the overlay image 81 int col0, // /< the column to start overlay 82 int row0, // /< the row to start overlay 83 const char *op // /< the operation to perform for overlay 84 ); 88 85 89 86 /** Rebin image to new scale. … … 97 94 * @return psImage new image formed by rebinning input image. 98 95 */ 99 psImage * psImageRebin(100 psImage* out, ///< an psImage to recycle. If NULL, a new image is created101 const psImage* in, ///< input image102 unsigned int scale, ///< the scale to rebin for each dimension103 const psStats* stats ///< the statistic to perform when rebinning. Only onemethod should be set.104 );96 psImage *psImageRebin(psImage * out, // /< an psImage to recycle. If NULL, a new image is created 97 const psImage * in, // /< input image 98 unsigned int scale, // /< the scale to rebin for each dimension 99 const psStats * stats // /< the statistic to perform when rebinning. Only one 100 // method should be set. 101 ); 105 102 106 psImage* psImageResample( 107 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 108 const psImage* in, ///< input image 109 int scale, 110 psImageInterpolateMode mode 111 ); 103 psImage *psImageResample(psImage * out, // /< an psImage to recycle. If NULL, a new image is created 104 const psImage * in, // /< input image 105 int scale, psImageInterpolateMode mode); 112 106 113 psImage* psImageRotate( 114 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 115 const psImage* in, ///< input image 116 float angle, 117 float unexposedValue, 118 psImageInterpolateMode mode 119 ); 107 psImage *psImageRotate(psImage * out, // /< an psImage to recycle. If NULL, a new image is created 108 const psImage * in, // /< input image 109 float angle, float unexposedValue, psImageInterpolateMode mode); 120 110 121 psImage* psImageShift( 122 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 123 const psImage* in, ///< input image 124 float dx, 125 float dy, 126 float unexposedValue, 127 psImageInterpolateMode mode 128 ); 111 psImage *psImageShift(psImage * out, // /< an psImage to recycle. If NULL, a new image is created 112 const psImage * in, // /< input image 113 float dx, float dy, float unexposedValue, psImageInterpolateMode mode); 129 114 130 115 /** Roll image by an integer number of pixels in either direction. … … 136 121 * @return psImage* the rolled version of the input image. 137 122 */ 138 psImage* psImageRoll( 139 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 140 const psImage* in, ///< input image 141 int dx, ///< number of pixels to roll in the x-dimension 142 int dy ///< number of pixels to roll in the y-dimension 143 ); 123 psImage *psImageRoll(psImage * out, // /< an psImage to recycle. If NULL, a new image is created 124 const psImage * in, // /< input image 125 int dx, // /< number of pixels to roll in the x-dimension 126 int dy // /< number of pixels to roll in the y-dimension 127 ); 144 128 145 129 #endif 146
Note:
See TracChangeset
for help on using the changeset viewer.
