This file defines the basic type for an image struct and functions useful in manupulating images.
Ross Harman, MHPCC
Definition in file psImage.h.
#include <complex.h>
#include <stdio.h>
#include "psType.h"
#include "psArray.h"
#include "psConstants.h"
Include dependency graph for psImage.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | PIXEL_INTERPOLATE_FCN_PROTOTYPE(SUFFIX, RETURNTYPE) |
| #define | PIXEL_INTERPOLATE_FCNS(MODE) |
Typedefs | |
| typedef psImage | psImage |
| Basic image data structure. | |
Enumerations | |
| enum | psImageInterpolateMode { PS_INTERPOLATE_FLAT, PS_INTERPOLATE_BILINEAR, PS_INTERPOLATE_LANCZOS2, PS_INTERPOLATE_LANCZOS3, PS_INTERPOLATE_LANCZOS4, PS_INTERPOLATE_BILINEAR_VARIANCE, PS_INTERPOLATE_LANCZOS2_VARIANCE, PS_INTERPOLATE_LANCZOS3_VARIANCE, PS_INTERPOLATE_LANCZOS4_VARIANCE } |
| enumeration of options in interpolation More... | |
Functions | |
| psImage * | psImageAlloc (int numCols, int numRows, psElemType type) |
| Create an image of the specified size and type. | |
| bool | psMemCheckImage (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psRegion | psRegionSet (float x0, float x1, float y0, float y1) |
| Create a psRegion with the specified attributes. | |
| psRegion | psRegionFromString (const char *region) |
| Create a psRegion with the attribute values given as a string. | |
| psString | psRegionToString (const psRegion region) |
| Create a string of the standard IRAF form '[x0:x1,y0:y1]' from a psRegion. | |
| psRegion | psRegionForImage (psImage *image, psRegion *in) |
| Sets an actual region based on image parameters. | |
| psRegion | psRegionForSquare (double x, double y, double radius) |
| Defines a region corresponding to the square with center at coordinate x,y and with coderadius. | |
| bool | psImageInit (psImage *image,...) |
| Initializes the image with the given value. | |
| psImage * | psImageRecycle (psImage *old, int numCols, int numRows, const psElemType type) |
| Resize a given image to the given size/type. | |
| bool | p_psImageCopyToRawBuffer (void *buffer, const psImage *input, psElemType type) |
| Copy an image to a new buffer. | |
| int | psImageFreeChildren (psImage *image) |
| Frees all children of a psImage. | |
| psF64 | p_psImageGetElementF64 (psImage *image, int col, int row) |
| get an element of an image as a psF64. | |
| bool | p_psImagePrint (int fd, psImage *a, char *name) |
| print image pixel values. | |
| complex | psImagePixelInterpolate (const psImage *input, float x, float y, const psImage *mask, psMaskType maskVal, complex unexposedValue, psImageInterpolateMode mode) |
| Interpolate image pixel value given floating point coordinates. | |
1.4.2