psImage.h File Reference

#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.

Data Structures

struct  psImage
 Basic image data structure. More...

Defines

#define P_PSIMAGE_SET_NUMCOLS(img, nc)   {*(int*)&img->numCols = nc;}
#define P_PSIMAGE_SET_NUMROWS(img, nr)   {*(int*)&img->numRows = nr;}
#define P_PSIMAGE_SET_TYPE(img, t)   {*(psMathType*)&img->type = t;}
#define PIXEL_INTERPOLATE_FCN_PROTOTYPE(SUFFIX, RETURNTYPE)
#define PIXEL_INTERPOLATE_FCNS(MODE)
#define PS_ASSERT_IMAGE_NON_NULL(NAME, RVAL)   PS_ASSERT_GENERAL_IMAGE_NON_NULL(NAME, return RVAL)
#define PS_ASSERT_GENERAL_IMAGE_NON_NULL(NAME, CLEANUP)
#define PS_ASSERT_IMAGE_NON_EMPTY(NAME, RVAL)   PS_ASSERT_GENERAL_IMAGE_NON_EMPTY(NAME, return RVAL)
#define PS_ASSERT_GENERAL_IMAGE_NON_EMPTY(NAME, CLEANUP)
#define PS_ASSERT_IMAGE_TYPE(NAME, TYPE, RVAL)
#define PS_ASSERT_IMAGES_SIZE_EQUAL(NAME1, NAME2, RVAL)
#define PS_ASSERT_IMAGE_SIZE(NAME1, NUM_COLS, NUM_ROWS, RVAL)
#define PS_IMAGE_PRINT_F32(NAME)
#define PS_IMAGE_PRINT_F64(NAME)

Enumerations

enum  psImageInterpolateMode {
  PS_INTERPOLATE_FLAT, PS_INTERPOLATE_BILINEAR, PS_INTERPOLATE_BICUBE, PS_INTERPOLATE_GAUSS, 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.
bool psImageInit (psImage *image,...)
 Initializes the image with the given value.
bool psImageSet (psImage *image, int x, int y, double complex value)
 Sets the value of the image at the specified x,y position to value.
double complex psImageGet (const psImage *image, int x, int y)
 Returns the value of the image at the specified x,y position.
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.
double complex psImagePixelInterpolate (const psImage *input, float x, float y, const psImage *mask, psMaskType maskVal, double complex unexposedValue, psImageInterpolateMode mode)
 Interpolate image pixel value given floating point coordinates.


Generated on Fri Feb 2 22:24:55 2007 for pslib by  doxygen 1.5.1