Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psImage.h File Reference


Detailed Description

Contains basic image definitions and operations.

This file defines the basic type for an image struct and functions useful in manupulating images.

Author:
Robert DeSonia, MHPCC

Ross Harman, MHPCC

Version:
Revision
1.80
Name
rel12
Date:
Date
2006/06/30 02:20:06
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

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.

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)

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

psImagepsImageAlloc (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.
psImagepsImageRecycle (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 Mon Jul 3 14:14:09 2006 for Pan-STARRS Foundation Library by  doxygen 1.4.4