00001 /* Enable the SADIE libraries to be linked to C++ code */
00002 #ifdef __cplusplus
00003 extern "C" {
00004 #endif
00005
00006 #include <sadie.h>
00007
00008 #ifndef SADIE_BYTE_H
00009 #define SADIE_BYTE_H
00010
00011 /*----------------------------------------------------------------------------*/
00012
00013 typedef BYTE PIXEL_BYTE;
00014
00015 typedef struct { /* Image data structure */
00016 short nbnd; /* Number of bands */
00017 short nlin; /* Number of lines */
00018 short npix; /* Number of pixels/line */
00019 short nbit; /* Number of bits/pixel (for disk I/O) */
00020 PIXEL_BYTE gmin; /* Minimum gray level in image */
00021 PIXEL_BYTE gmax; /* Maximum gray level in image */
00022 char pstr[1]; /* Length byte for Pascal strings */
00023 char text[TLEN-1]; /* Image/window name */
00024 PIXEL_BYTE ***data; /* Pointer to the data itself */
00025 } IMAGE_BYTE;
00026
00027 /*----------------------------------------------------------------------------*/
00028
00029 extern short CHECKIMG_BYTE(IMAGE_BYTE *);
00030 extern void RELIMG_BYTE(IMAGE_BYTE **);
00031 extern void RELMEM_BYTE(IMAGE_BYTE *);
00032 extern void GETMEM_BYTE(short, short, short, IMAGE_BYTE **);
00033 extern void RANGE_BYTE (IMAGE_BYTE *);
00034 extern void BYTEIMG2DISK (IMAGE_BYTE *, unsigned char *);
00035 extern void BYTEDISK2IMG (unsigned char *, IMAGE_BYTE **);
00036
00037 #endif
00038
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042
1.2.14 written by Dimitri van Heesch,
© 1997-2002