Changeset 157 for trunk/archive/pslib/include/psImages.h
- Timestamp:
- Mar 9, 2004, 1:49:35 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psImages.h (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psImages.h
r151 r157 44 44 /// Create an image of the specified size and type. 45 45 psImage * 46 ps AllocImage(int nx, ///< image width46 psImageAlloc (int nx, ///< image width 47 47 int ny, ///< image height 48 48 PS_IMAGE_DEPTH depth ///< image depth … … 51 51 /// Create a subimage of the specified area. 52 52 psImage * 53 ps SubsetImage(psImage *image, ///< parent image53 psImageSubset (psImage *image, ///< parent image 54 54 int nx, ///< subimage width (<= image.nx - x0) 55 55 int ny, ///< subimage width (<= image.ny - y0) … … 60 60 /// Destroy the specified image (destroy children if they exist). 61 61 void 62 ps FreeImage (psImage *image ///< free this image62 psImageFree (psImage *image ///< free this image 63 63 ); 64 64 65 65 /// Destroy the children of the specified image. 66 66 int 67 ps FreeImageChildren (psImage *image ///< free children of this image67 psImageFreeChildren (psImage *image ///< free children of this image 68 68 ); 69 69 70 70 /// Create a copy of the specified image. 71 71 psImage * 72 ps CopyImage(psImage *output, ///< target structure for output image data72 psImageCopy (psImage *output, ///< target structure for output image data 73 73 psImage *input ///< copy this image 74 74 ); … … 77 77 /// Extract pixels from rectlinear region to a vector. 78 78 psFloatArray * 79 ps SliceImage (psImage *input, ///< extract slice from this image79 psImageSlice (psImage *input, ///< extract slice from this image 80 80 int x, ///< starting x coord of region to slice 81 81 int y, ///< starting y coord of region to slice … … 88 88 /// Extract pixels along a line to a vector. 89 89 psFloatArray * 90 ps CutImage(psImage *input, ///< extract cut from this image90 psImageCut (psImage *input, ///< extract cut from this image 91 91 float xs, ///< starting x coord of cut 92 92 float ys, ///< starting y coord of cut … … 99 99 /// Extract radial annulii data to a vector. 100 100 psFloatArray * 101 ps RadialCutImage(psImage *input, ///< extract profile from this image101 psImageRadialCut (psImage *input, ///< extract profile from this image 102 102 float x, ///< center x coord of annulii 103 103 float y, ///< center y coord of annulii … … 109 109 /// Extract a 2-d contour from an image at the given threshold. 110 110 psFloatArrayArray * 111 ps ContourImage(psImage *input, ///< create contour for this image111 psImageContour (psImage *input, ///< create contour for this image 112 112 float threshold, ///< contour image at this threshold 113 113 int binning ///< bin image by this value for contour calculation … … 116 116 /// Extract a 2-d contour from an image at the given threshold. 117 117 psSpanArray * 118 ps ContourImage(psImage *input, ///< create contour for this image118 psImageContour (psImage *input, ///< create contour for this image 119 119 float threshold ///< image at this threshold 120 120 ); … … 123 123 /// Rebin image to new scale. 124 124 psImage * 125 ps RebinImage(psImage *input, ///< rebin this image125 psImageRebin (psImage *input, ///< rebin this image 126 126 float scale, ///< rebinning scale: doutput = scale*dinput 127 127 enum statmode ///< statistic used in performing interpolation / summing … … 130 130 /// Rotate image by given angle. 131 131 psImage * 132 ps RotateImage (psImage *input, ///< rotate this image132 psImageRotate (psImage *input, ///< rotate this image 133 133 float angle ///< rotate by this amount (degrees) 134 134 ); … … 137 137 /// Drop edge pixels, and set newly exposed pixels to 'exposed'. 138 138 psImage * 139 ps ShiftImage(psImage *input, ///< shift this image139 psImageShift (psImage *input, ///< shift this image 140 140 float dx, ///< shift by this amount in x 141 141 float dy, ///< shift by this amount in y … … 146 146 /// Edge pixels wrap to the other side (no values are lost). 147 147 psImage * 148 ps RollImage(psImage *input, ///< roll this image148 psImageRoll (psImage *input, ///< roll this image 149 149 int dx, ///< roll this amount in x 150 150 int dy ///< roll this amount in y … … 155 155 /// How to represent the output values? 156 156 void 157 ps StatImage(psImage *input, enum statmode);157 psImageGetStats (psImage *input, enum statmode); 158 158 159 159 /// Construct a histogram from an image (or subimage). 160 160 psHistogram * 161 ps HistogramImage(psHistogram, ///< input histogram description & target161 psImageHistogram (psHistogram, ///< input histogram description & target 162 162 psImage *input, ///< determine histogram of this image 163 163 ); … … 165 165 /// Fit a 2-D polynomial surface to an image. 166 166 psFloatArrayArray * 167 ps FitPolynomialImage(psImage *input, ///< image to fit167 psImageFitPolynomial (psImage *input, ///< image to fit 168 168 int xorder ///< order of polynomial in x-dir 169 169 int yorder ///< order of polynomial in y-dir … … 173 173 /// Read an image or subimage from a named file. 174 174 psImage * 175 ps ReadImageSection (psImage *output, ///< place data in this structure for output175 psImageReadSection (psImage *output, ///< place data in this structure for output 176 176 int x, ///< starting x coord of region 177 177 int y, ///< starting y coord of region … … 185 185 /// Read an image or subimage from file descriptor. 186 186 psImage * 187 ps FReadImageSection (psImage *output, ///< place data in this structure for output187 psImageFReadSection (psImage *output, ///< place data in this structure for output 188 188 int x, ///< starting x coord of region 189 189 int y, ///< starting y coord of region … … 197 197 /// Write an image section to named file (which may exist). 198 198 psImage * 199 ps WriteImageSection (psImage *input, ///< image to write out199 psImageWriteSection (psImage *input, ///< image to write out 200 200 int x, ///< starting x coord of region 201 201 int y, ///< starting y coord of region … … 207 207 /// Write an image section to named file (which may exist). 208 208 psImage * 209 ps FWriteImageSection (psImage *input, ///< image to write out209 psImageFWriteSection (psImage *input, ///< image to write out 210 210 int x, ///< starting x coord of region 211 211 int y, ///< starting y coord of region … … 217 217 /// Read only header from image file. 218 218 psMetadata * 219 ps ReadImageHeader (psMetadata *output, ///< read data to this structure219 psImageReadHeader (psMetadata *output, ///< read data to this structure 220 220 char *extname, ///< MEF extension name ("PHU" for primary header) 221 221 char *filename ///< file to read from … … 224 224 /// Read only header from image file descriptor. 225 225 psMetadata * 226 ps ReadImageHeader (psMetadata *output, ///< read data to this structure226 psImageFReadHeader (psMetadata *output, ///< read data to this structure 227 227 char *extname, ///< MEF extension name ("PHU" for primary header) 228 228 FILE *f ///< file descriptor to read from … … 232 232 /// Perform an FFT on the image. 233 233 psImage * 234 ps FFTImage(psImage *input, ///< image to FFT234 psImageFFT (psImage *input, ///< image to FFT 235 235 enum direction ///< FFT direction 236 236 ); … … 239 239 /// Clip image values outside of range to given values. 240 240 int 241 ps ClipImage(psImage *input, ///< clip this image241 psImageClip (psImage *input, ///< clip this image 242 242 float min, ///< clip pixels with values < min 243 243 float vmin, ///< set min-clipped pixels to vmin … … 248 248 /// Clip NaN image pixels to given value. 249 249 int 250 ps ClipNaNImage(psImage *input, ///< clip this image250 psImageClipNaN (psImage *input, ///< clip this image 251 251 float value ///< set nan pixels to this value 252 252 ); … … 270 270 /// Overlay subregion of image with another image. 271 271 int 272 ps OverlayImage(psImage *image, ///< input image272 psImageOverlaySection (psImage *image, ///< input image 273 273 psImage *overlay, ///< image to overlay 274 274 int x0, ///< x offset of overlay subimage
Note:
See TracChangeset
for help on using the changeset viewer.
