intimage.h

00001 
00002 /*---------------------------------------------------------------------------
00003    
00004    File name    :   intimage.h
00005    Author       :   Nicolas Devillard
00006    Created on   :   July 2000
00007    Description  :   Image object containing integer pixels.
00008 
00009  *--------------------------------------------------------------------------*/
00010 
00011 /*
00012     $Id
00013     $Author
00014     $Date
00015     $Revision
00016 */
00017 
00018 #ifndef _INTIMAGE_H_
00019 #define _INTIMAGE_H_
00020 
00021 /*---------------------------------------------------------------------------
00022                                 Includes
00023  ---------------------------------------------------------------------------*/
00024 
00025 #include <stdio.h>
00026 #include <stdlib.h>
00027 #include "local_types.h"
00028 #include "memory.h"
00029 
00030 /*---------------------------------------------------------------------------
00031                                 New types
00032  ---------------------------------------------------------------------------*/
00033 
00034 /*-------------------------------------------------------------------------*/
00045 /*--------------------------------------------------------------------------*/
00046 typedef short16 intpix ;
00047 
00048 
00049 /*-------------------------------------------------------------------------*/
00065 /*--------------------------------------------------------------------------*/
00066 typedef struct _intimage_ {
00067     int         lx ;
00068     int         ly ;
00069     intpix  *   data ;
00070 } intimage ;
00071 
00072 
00073 /*---------------------------------------------------------------------------
00074                             Function prototypes
00075  ---------------------------------------------------------------------------*/
00076 
00077 
00078 /*-------------------------------------------------------------------------*/
00091 /*--------------------------------------------------------------------------*/
00092 
00093 intimage * intimage_new(int lx, int ly);
00094 
00095 
00096 /*-------------------------------------------------------------------------*/
00106 /*--------------------------------------------------------------------------*/
00107 void intimage_del(intimage * img);
00108 
00109 
00110 /*-------------------------------------------------------------------------*/
00121 /*--------------------------------------------------------------------------*/
00122  
00123 intimage * intimage_load(char * filename);
00124 
00125 
00126 /*-------------------------------------------------------------------------*/
00138 /*--------------------------------------------------------------------------*/
00139  
00140 void intimage_save(intimage * img, char * filename);
00141 
00142 
00143 /*-------------------------------------------------------------------------*/
00159 /*--------------------------------------------------------------------------*/
00160 int intimage_increment_zone(
00161         intimage    *   img,
00162         int             xpos,
00163         int             ypos,
00164         int             xsize,
00165         int             ysize) ;
00166 
00167 
00168 #endif

Generated on Wed Oct 26 13:08:52 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001