Main Page | Modules | Class List | File List | Class Members | File Members

image_pointer.c File Reference

#include <gandalf/image/image_pointer.h>
#include <string.h>
#include <gandalf/image/image_defs.h>
#include <gandalf/common/array.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/misc_error.h>

Defines

#define GAN_PIXEL   void *
#define GAN_PIXEL_FORMAT   grey-level
#define GAN_PIXEL_TYPE   void *
#define GAN_PIXTYPE   GAN_POINTER
#define GAN_IMTYPE   p
#define GAN_IMAGE_FORM_GEN   gan_image_form_gen_p
#define GAN_IMAGE_SET_GEN   gan_image_set_gen_p
#define GAN_IMAGE_ALLOC   gan_image_alloc_p
#define GAN_IMAGE_ALLOC_DATA   gan_image_alloc_data_p
#define GAN_IMAGE_FORM   gan_image_form_p
#define GAN_IMAGE_FORM_DATA   gan_image_form_data_p
#define GAN_IMAGE_SET   gan_image_set_p
#define GAN_IMAGE_SET_PIX   gan_image_set_pix_p
#define GAN_IMAGE_GET_PIX   gan_image_get_pix_p
#define GAN_IMAGE_GET_PIXPTR   gan_image_get_pixptr_p
#define GAN_IMAGE_GET_PIXARR   gan_image_get_pixarr_p
#define GAN_IMAGE_FILL_CONST   gan_image_fill_const_p
#define GAN_IMAGE_GET_ACTIVE_SUBWINDOW   gan_image_get_active_subwindow_p
#define GAN_IMAGE_MASK_WINDOW   gan_image_mask_window_p
#define GAN_IMAGE_CLEAR_WINDOW   gan_image_clear_window_p
#define GAN_IMAGE_PIXEL_ZERO_VAL   NULL
#define GAN_FILL_ARRAY   gan_fill_array_p
#define GAN_COPY_ARRAY   gan_copy_array_p
#define GAN_PIXFMT   GAN_GREY_LEVEL_IMAGE
#define GAN_IMFMT   gl

Functions

Gan_Imagegan_image_set_gen_p (Gan_Image *img, unsigned long height, unsigned long width, unsigned long stride, Gan_Bool alloc_pix_data)
 Set format, type, dimension and stride attributes of an image.
Gan_Imagegan_image_form_gen_p (Gan_Image *img, unsigned long height, unsigned long width, unsigned long stride, Gan_Bool alloc_pix_data, void **pix_data, size_t pix_data_size, void ***row_data, size_t row_data_size)
 Form an image with specific format, type, dimensions and stride.
Gan_Bool gan_image_get_active_subwindow_p (const Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.
void ** gan_image_get_pixptr_p (const Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level void * image.
void *** gan_image_get_pixarr_p (const Gan_Image *img)
 Return the pixel array from a grey-level void * image.
Gan_Bool gan_image_mask_window_p (Gan_Image *img, unsigned r0, unsigned c0, unsigned height, unsigned width)
 Clear image except in specified rectangular region.
Gan_Bool gan_image_clear_window_p (Gan_Image *img, unsigned r0, unsigned c0, unsigned height, unsigned width)
 Clear image in specified rectangular region.

Detailed Description

Module: Images of pointers

Part of: Gandalf Library

Version:
1.17
Date:
2004/03/17 16:14:20
Author:
pm
Copyright: (c) 2000 Imagineer Software Limited
Generated on Fri Mar 17 12:44:51 2006 by  doxygen 1.3.9.1