Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ImageUtil.c File Reference

#include <phStandard.h>
#include <string.h>
#include <math.h>
#include <phMath.h>
#include <ImageDefinitions.h>
#include <ImageUtil.h>
#include <phError.h>
#include <phMemory.h>
#include <phPrint.h>

Go to the source code of this file.

Classes

struct  ph_x_table_t
struct  ph_y_table_t
struct  ph_bilinear_pix_array_t
struct  ph_bilinear_pixel_t
union  bilinear_pixel_u
struct  ph_bilinear_table_t
struct  ph_nearest_neighbor_table_t

Defines

#define NO_ALLOC   1
#define BI_FIXED_POINT()   1
#define BI_USE_INDEX_TABLE()   1

Typedefs

typedef ph_x_table_t ph_bilinear_ph_x_table_type
typedef ph_y_table_t ph_bilinear_ph_y_table_type
typedef ph_bilinear_pix_array_t ph_bilinear_pix_array_type
typedef ph_bilinear_pixel_t ph_bilinear_pixel_type
typedef bilinear_pixel_u bilinear_pixel_union

Functions

void ph_bilinear_table_free (struct ph_bilinear_table_t **table)
static int ph_calculate_bilinear_table (const uint32_t w, const uint32_t h, const uint32_t d, const uint32_t nw, const uint32_t nh, struct ph_bilinear_table_t **table)
int ph_bilinear_scale (const uint8_t *image, const uint32_t w, const uint32_t h, const uint32_t f, const uint32_t nw, const uint32_t nh, struct ph_bilinear_table_t **table, uint8_t **pscaled_image)
void ph_nearest_neighbor_table_free (struct ph_nearest_neighbor_table_t **table)
static int ph_calculate_nn_table (const uint32_t w, const uint32_t h, const uint32_t d, const uint32_t nw, const uint32_t nh, struct ph_nearest_neighbor_table_t **table)
int ph_nearest_neighbor_scale (const uint8_t *image, const uint32_t w, const uint32_t h, const uint32_t f, const uint32_t nw, const uint32_t nh, struct ph_nearest_neighbor_table_t **table, uint8_t **pscaled_image)
int ph_image_crop (const uint8_t *imgptr, const uint32_t in_w, const uint32_t in_h, const uint32_t in_f, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint8_t **pcropped_image, uint32_t *ps, uint32_t *pw, uint32_t *ph)
 todo.




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:14 2007 for phission by  doxygen 1.4.4