ftp.nice.ch/pub/next/graphics/bitmap/dips.1.00.s.tar.gz#/DIPS/_dips/HipsImage.h

This is HipsImage.h in view mode; [Download] [Up]

#define HIPS_PFBYTE 0
#define HIPS_PFSHORT 1
#define HIPS_PFINT 2
#define HIPS_PFFLOAT 3
#define HIPS_PFCOMPLEX 4

typedef struct _hipsImage
{
    	char 	*orig_name;     /* Originator of this sequence. */
    	char 	*seq_name;      /* The sequence name. */
    	int 	num_frame;      /* The number of frames in this sequence. */
    	char	*orig_date;     /* The date the sequence was originated. */
    	int 	rows;           /* The number of rows in each image (height). */
    	int 	cols;           /* The number of columns in each image (width). */
    	int 	bits_per_pixel; /* The number of significant bits per pixel. */
    	int 	bit_packing;    /* Nonzero if the bits were packed such as to */
                                /* eliminate any unused bits resulting from a */
                                /* bits_per_pixel value which was not an even */
                                /* multiple of eight. */
    	int 	pixel_format;   /* An indication of the format of each pixel. */
   	char	*seq_history;   /* A description of the sequence of  */
                                /* transformations leading up to the current  */
                                /* image. */
    	char 	*seq_desc;      /* A free form description of the contents of  */
                                /* the sequence. */
    	int 	*data;          /* The image data. */
} hipsImage;

int 		openImage(hipsImage *image);
void 		writeHeader(hipsImage *image);
int 		saveImage(hipsImage *image);
hipsImage 	*copyImage(hipsImage *src);
void 		convolveImage(hipsImage *image, mask *m);
void 		invertImage(hipsImage *image);
void 		threshImage(hipsImage *image, int l, int h);
char 		*getorig_name(hipsImage *image);
char 		*getorig_date(hipsImage *image);
char 		*getseq_name(hipsImage *image);
char 		*getseq_name(hipsImage *image);
int 		getrows(hipsImage *image);
int 		getcols(hipsImage *image);
int 		getbits_per_pixel(hipsImage *image);
int 		getbit_packing(hipsImage *image);
int 		getpixel_format(hipsImage *image);
char 		*getseq_history(hipsImage *image);
char 		*getseq_desc(hipsImage *image);
int 		*getdata(hipsImage *image);
float 		**getfdata(hipsImage *image, int *theRows, int *theCols);
char 		*read_line(FILE *fp,int *size);

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.